#include <CMagic.h>

Public Member Functions | |
| void | check () const |
| void | checkNPrint () const |
| CMagic () | |
| ~CMagic () | |
Private Attributes | |
| int | mMagic |
Definition at line 12 of file CMagic.h.
| CMagic::CMagic | ( | ) |
| CMagic::~CMagic | ( | ) |
| void CMagic::check | ( | ) | const |
This function checks the magic number of this and asserts to zero, if something is wrong, if things are ok, this function keeps quiet.
This function checks the magic number of this and asserts to zero, if something is wrong
Reimplemented in CAttributeList, and CXMLElement.
Definition at line 8 of file CMagic.cc.
References mMagic.
Referenced by checkNPrint().
00008 { 00009 if(mMagic==36){ 00010 cout << "Was constructed, has been destroyed in the meanwhile " 00011 << endl; 00012 assert(!"Was constructed, but destroyed to early"); 00013 }else{ 00014 if(mMagic!=42){ 00015 cout << "The magic number is: " 00016 << mMagic 00017 << endl; 00018 assert(!"No construction"); 00019 } 00020 } 00021 };
| void CMagic::checkNPrint | ( | ) | const |
as check(), but it also prints a small message to cout, saying that the check worked.
Definition at line 22 of file CMagic.cc.
References check().
Referenced by CAttributeList::add(), CQueryTreeNode::addChild(), CQueryTreeNode::configure(), libGIFTAcDistanceMatrix_makeAccessor(), CXEVCommunication::startVisit(), and CAttributeList::stringReadAttribute().
00022 { 00023 check(); 00024 cout << "CHECKING SUCCEEDED" << endl; 00025 };
int CMagic::mMagic [private] |
1.5.6