|
From: Frank V. C. <fr...@us...> - 2001-04-08 12:59:10
|
Update of /cvsroot/corelinux/clfw/src/libs/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv23723/src/libs/Persist
Modified Files:
SchemaCatalog.cpp
Log Message:
Fleshing out some details
Index: SchemaCatalog.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaCatalog.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SchemaCatalog.cpp 2001/04/08 10:50:43 1.1
--- SchemaCatalog.cpp 2001/04/08 12:59:07 1.2
***************
*** 29,38 ****
--- 29,59 ----
#endif
+ #if !defined(__SCHEMA_HPP)
+ #include <clfw/Schema.hpp>
+ #endif
+
#if !defined(__SETCOLLECTION_HPP)
#include <clfw/SetCollection.hpp>
#endif
+ #if !defined(__FRAMEWORKSTRING_HPP)
+ #include <clfw/FrameworkString.hpp>
+ #endif
+
+ extern "C"
+ {
+ #include <gdbm.h>
+ }
+
namespace corelinux
{
+ static FrameworkString nameKey("Name");
+ static FrameworkString locationKey("Location");
+ static FrameworkString guidKey("GUID");
+
+ static FrameworkString catName;
+ static FrameworkString catLocation;
+ static FrameworkString storesLocation;
+
//
// Constructor
***************
*** 82,90 ****
return ( *this );
}
! CollectionPtr SchemaCatalog::getEntities( void ) const
{
! SetCollectionPtr aSetOfEntities( NULLPTR );
! return aSetOfEntities;
}
--- 103,173 ----
return ( *this );
}
+
+ //
+ // Retrieves the number of entries, ipso facto, the number
+ // of schemas
+ //
+
+ Counter SchemaCatalog::getCount( void ) const
+ {
+ return 0;
+ }
+
+ //
+ // Create a new entry and, lo and behold, a new schema.
+ //
+
+ void SchemaCatalog::createEntry( CollectionPtr )
+ {
+
+ }
+
+ //
+ // Remove and entry and, ipso fatso, the schema
+ //
+
+ void SchemaCatalog::deleteEntry( CollectionPtr )
+ {
+
+ }
+
+ //
+ // Retreive a specific entry instance based on provided Name or
+ // UniversalUniqueIdentifier
+ //
+
+ FrameworkEntityPtr SchemaCatalog::getEntry( CollectionPtr ) const
+ {
+ SchemaPtr aSchm( NULLPTR );
+ return aSchm;
+ }
+
+ void SchemaCatalog::saveSchema( SchemaPtr )
+ {
+
+ }
+
+ void SchemaCatalog::closeSchema( SchemaPtr )
+ {
+
+ }
+
+
+ //
+ // Here is where we check that we are not
+ // colliding with another schema, we
+ // add the entry to the catalog with the UUID
+ // stringified key
+ //
! SchemaPtr SchemaCatalog::createSchema
! (
! FrameworkStringCref aKey,
! FrameworkStringCref aName,
! FrameworkStringCref aLocation
! ) throw ()
{
! SchemaPtr aSchm( NULLPTR );
! return aSchm;
}
|