|
From: Frank V. C. <fr...@us...> - 2001-02-24 04:18:25
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1
In directory usw-pr-cvs1:/tmp/cvs-serv6115
Modified Files:
examp1.cpp
Log Message:
133852 UniversalIdentifier as instance object id
Index: examp1.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** examp1.cpp 2000/11/19 05:19:52 1.25
--- examp1.cpp 2001/02/24 04:19:32 1.26
***************
*** 87,90 ****
--- 87,94 ----
#endif
+ #if !defined(__FRAMEWORKENTITY_HPP)
+ #include <clfw/FrameworkEntity.hpp>
+ #endif
+
#include INCL_Library
***************
*** 313,318 ****
--- 317,326 ----
{
UserTypePtr aType( new UserType );
+ UniversalIdentifier aId;
UnsignedShortIntegerPtr aValue( new UnsignedShortInteger(8) );
+ UniversalIdentifier::setNewUid( aId );
+ aType->setOid( aId );
+
dumpTypeInformation( aType );
***************
*** 560,563 ****
--- 568,575 ----
void dumpTypeInformation( FrameworkEntityPtr anFEPtr )
{
+ Char buffer[40];
+ anFEPtr->getOid().getAsString(buffer);
+ cout << "Object identifier = " << buffer << endl;
+
dumpMetaTypeInformation( anFEPtr->getType() );
}
|