|
From: Frank V. C. <fr...@us...> - 2001-04-22 14:30:54
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf2
In directory usw-pr-cvs1:/tmp/cvs-serv13712/src/testdrivers/exf2
Modified Files:
examp2.cpp
Log Message:
Refined schema store operations and objects
Index: examp2.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf2/examp2.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** examp2.cpp 2001/04/21 21:39:01 1.7
--- examp2.cpp 2001/04/22 14:30:51 1.8
***************
*** 23,27 ****
This may be the begining of the schema management stuff, who knows?
! Maybe that guy over there...no...over there
Anyway, for this example we make a number of assertions:
--- 23,27 ----
This may be the begining of the schema management stuff, who knows?
! Maybe that guy over there...no?...over there?
Anyway, for this example we make a number of assertions:
***************
*** 136,142 ****
// list existing schemas
// load a schema -or-
! //SchemaPtr aSchema( createSchemaAndPopulate(aCatalog) );
}
--- 136,153 ----
// list existing schemas
+ Iterator<FrameworkEntityPtr> *aItr( aCatalog->createCatalogIterator() );
+
+ while( aItr->isValid() )
+ {
+ FrameworkStringPtr aName( FrameworkString::castDown(aItr->getElement()));
+ cout << "Have entry for " << aName->getValue() << endl;
+ aItr->setNext();
+ }
+
+ aCatalog->destroyIterator( aItr );
+
// load a schema -or-
! SchemaPtr aSchema( createSchemaAndPopulate(aCatalog) );
}
|