|
From: Frank V. C. <fr...@us...> - 2000-10-25 12:22:10
|
Update of /cvsroot/corelinux/clfw/src/libs/LibLoad In directory slayer.i.sourceforge.net:/tmp/cvs-serv31756/LibLoad Modified Files: LibraryType.cpp Log Message: 116488, 116738 Index: LibraryType.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/LibLoad/LibraryType.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** LibraryType.cpp 2000/08/31 02:18:51 1.2 --- LibraryType.cpp 2000/10/25 12:22:08 1.3 *************** *** 31,34 **** --- 31,67 ---- namespace corelinux { + //! version LibraryType for the MetaType + + const DwordCref version(1); + + //! meta indentifier for the Prototype + + const UniversalIdentifier metaIdentifier + ( + "98df59ba-a9df-11d4-9cd8-00500489272c" + ); + + //! ahh, our first foray into ontologies + + OPEN_METATYPE_PARENTS( LibraryType ) + DEFINE_METATYPE_PARENT( Prototype ) + CLOSE_METATYPE_PARENT; + + //! because this is a abstract base entity, there are no members either + + //! We define our property data descriptor + + DEFINE_INSTANCEDATA_DESCRIPTOR(LibraryType,string,TypeName); + + //! We construct the values reference + + OPEN_INSTANCEDATA( LibraryType ) + DEFINE_INSTANCEDATA( LibraryType, TypeName ) + CLOSE_INSTANCEDATA; + + //! we use the abstract macro for MetaTypePrototype autonaming + + DEFINE_METATYPE( LibraryType, metaIdentifier, version ); + // // Constructor *************** *** 36,65 **** LibraryType::LibraryType( void ) - throw ( Assertion ) : theTypeName() { - NEVER_GET_HERE; } // - // Default constructor - // - - LibraryType::LibraryType( const std::string & aIdentifier ) - throw ( NullPointerException ) - : - theTypeName(aIdentifier) - { - if( theTypeName.empty() == true ) - { - throw NullPointerException(LOCATION); - } - else - { - ; // do nothing - } - } - // // Copy constructor // --- 69,79 ---- LibraryType::LibraryType( void ) : + Prototype(), theTypeName() { } // // Copy constructor // *************** *** 67,70 **** --- 81,85 ---- LibraryType::LibraryType( LibraryTypeCref aType ) : + Prototype(), theTypeName(aType.getTypeName()) { *************** *** 117,128 **** } - // - // Fetch the type name - // - - const std::string & LibraryType::getTypeName( void ) const - { - return theTypeName; - } } --- 132,135 ---- |