|
From: Frank V. C. <fr...@us...> - 2000-10-04 05:20:29
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv26902/src/libs/clfw Modified Files: FrameworkEntity.cpp Makefile.am MetaType.cpp Added Files: Number.cpp Log Message: 113427 Number Type added ***** Error reading new file: (2, 'No such file or directory') Index: FrameworkEntity.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/FrameworkEntity.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** FrameworkEntity.cpp 2000/10/04 04:33:16 1.3 --- FrameworkEntity.cpp 2000/10/04 05:20:26 1.4 *************** *** 1,3 **** - /* CoreLinux++ --- 1,2 ---- *************** *** 34,38 **** { //! version number for the FrameworkEntity MetaType ! const Dword version(1); //! meta indentifier for the FrameworkEntity --- 33,37 ---- { //! version number for the FrameworkEntity MetaType ! const DwordCref version(1); //! meta indentifier for the FrameworkEntity *************** *** 47,50 **** --- 46,50 ---- CLOSE_METATYPE_PARENT; + //! because we must define MetaTypeRoot we use DEFINE_METATYPE1 DEFINE_METATYPE1( FrameworkEntity, MetaTypeRoot, metaIdentifier, version ); *************** *** 85,89 **** FrameworkEntityRef FrameworkEntity::operator= ( ! FrameworkEntityCref aFrameworkEntity ) { --- 85,89 ---- FrameworkEntityRef FrameworkEntity::operator= ( ! FrameworkEntityCref ) { Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** Makefile.am 2000/10/03 02:14:03 1.4 --- Makefile.am 2000/10/04 05:20:26 1.5 *************** *** 15,19 **** MetaType.cpp \ UniversalIdentifier.cpp \ ! FrameworkEntity.cpp LIBS = --- 15,20 ---- MetaType.cpp \ UniversalIdentifier.cpp \ ! FrameworkEntity.cpp \ ! Number.cpp LIBS = Index: MetaType.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/MetaType.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** MetaType.cpp 2000/10/04 04:33:16 1.3 --- MetaType.cpp 2000/10/04 05:20:26 1.4 *************** *** 120,123 **** --- 120,125 ---- } + // Return the metatype universal identifier + UniversalIdentifierCref MetaType::getIdentifier( void ) const { *************** *** 125,128 **** --- 127,132 ---- } + // Fetch the type class version + DwordCref MetaType::getTypeVersion( void ) const { *************** *** 130,133 **** --- 134,146 ---- } + // Fetch the type class size + + DwordCref MetaType::getTypeSize( void ) const + { + return theInstanceSize; + } + + // Get the list of parents + MetaTypeCptr *const MetaType::getParentTypes( void ) const { *************** *** 135,138 **** --- 148,153 ---- } + // Get the class name + CharCptr MetaType::getInstanceTypeName( void ) const { *************** *** 140,143 **** --- 155,160 ---- } + // Get the metatype name + CharCptr MetaType::getMetaTypeName( void ) const { *************** *** 145,148 **** --- 162,167 ---- } + // Get the allocator + AllocatorPtr MetaType::getAllocator( void ) const { *************** *** 150,153 **** --- 169,174 ---- } + // Find out if the type is the same + bool MetaType::isType( MetaTypeCptr aTypePtr ) const throw ( Assertion ) { *************** *** 155,158 **** --- 176,181 ---- return ( this == aTypePtr ) ; } + + // Find out if metatype is type of another (most cases are true) bool MetaType::isTypeOf( MetaTypeCptr aTypePtr ) const throw ( Assertion ) |