|
From: Frank V. C. <fr...@us...> - 2000-10-27 12:41:37
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv2183/src/testdrivers/exf1 Modified Files: examp1.cpp Log Message: Complimented fundemental types with C++ standards Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** examp1.cpp 2000/10/25 12:24:23 1.14 --- examp1.cpp 2000/10/27 12:41:35 1.15 *************** *** 140,144 **** // - // // Now we sweeten the pot with showing the factory methods, // introspection, getters, setters, and destructors --- 140,143 ---- *************** *** 154,157 **** --- 153,166 ---- Integer::destroy( aInteger ); + // Show that new is overriden even for constructors with + // values by dumping the allocation information after + // destructor + + IntegerPtr anotherInteger = new Integer(7); + cout << "Value of anotherInteger = " << + anotherInteger->getValue() << endl; + delete anotherInteger; + dumpMetaTypeInformation( Integer::getTypeDescriptor() ); + // signed Short *************** *** 171,174 **** --- 180,185 ---- << getValue<UnsignedInt>("Value",aUnsigned) << endl; delete aUnsigned; + + // unsigned short integer UnsignedShortIntegerPtr aUnsignedShort = new UnsignedShortInteger; |