|
From: Frank V. C. <fr...@us...> - 2000-10-04 04:02:09
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv978 Modified Files: examp1.cpp Log Message: 113427 test code fixed alignment Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** examp1.cpp 2000/10/04 03:01:59 1.4 --- examp1.cpp 2000/10/04 04:02:05 1.5 *************** *** 61,65 **** // ! int main( void ); // Aligned trailing comments // --- 61,65 ---- // ! int main( void ); // *************** *** 79,96 **** // ! try ! { ! // ! // Comment out the following if you want to ! // ignore test invarient and illegal attempts // const MetaType *aMT= FrameworkEntity::getTypeDescriptor(); - cout << "Framework metatype = " << aMT << endl; - cout << "Framework metatype metaname = " << aMT->getMetaTypeName() << endl; - cout << "Framework metatype metaname = " << aMT->getInstanceTypeName() << endl; - FrameworkEntityPtr aFrameworkEntity = new FrameworkEntity; --- 79,91 ---- // ! try ! { // ! // The MetaType pointer is the genesis machine! You don't own it, so ! // don't destroy it. // const MetaType *aMT= FrameworkEntity::getTypeDescriptor(); FrameworkEntityPtr aFrameworkEntity = new FrameworkEntity; *************** *** 101,131 **** cout << "Compare meta-types (is aFrameworkEntity of type FrameworkEntity?) = "; if ( aFrameworkEntity->getType()->isType(aMT) == true ) ! { ! cout << "yes!" << endl; ! } else ! { cout << "no!" << endl; ! } delete aFrameworkEntity; ! } ! catch( AssertionRef aAssert ) ! { handleAssertion(aAssert); ! } ! catch( ExceptionRef aException ) ! { handleException(aException); ! } ! catch( std::exception & e ) ! { cerr << e.what() << endl; ! } ! catch( ... ) ! { cerr << "Unknown exception." << endl; ! } // No line exceeds the 78 column positions (Section 4.6) --| --- 96,127 ---- cout << "Compare meta-types (is aFrameworkEntity of type FrameworkEntity?) = "; + if ( aFrameworkEntity->getType()->isType(aMT) == true ) ! { ! cout << "yes!" << endl; ! } else ! { cout << "no!" << endl; ! } delete aFrameworkEntity; ! } ! catch( AssertionRef aAssert ) ! { handleAssertion(aAssert); ! } ! catch( ExceptionRef aException ) ! { handleException(aException); ! } ! catch( std::exception & e ) ! { cerr << e.what() << endl; ! } ! catch( ... ) ! { cerr << "Unknown exception." << endl; ! } // No line exceeds the 78 column positions (Section 4.6) --| *************** *** 175,180 **** "Exception: " << aExcp.getWhy() << endl; } - - // Trailer CVS information only (Section 3.0) /* --- 171,174 ---- |