|
From: Frank V. C. <fr...@us...> - 2001-04-21 21:39:05
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv16775/clfw/Persist
Modified Files:
SchemaAbstractStore.hpp SchemaCatStore.hpp SchemaCatalog.hpp
SchemaStore.hpp Store.hpp
Log Message:
Creates actual schema db now, although no content. Cleaning, testing, and embellishing
Index: SchemaAbstractStore.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaAbstractStore.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SchemaAbstractStore.hpp 2001/04/19 03:44:41 1.2
--- SchemaAbstractStore.hpp 2001/04/21 21:39:01 1.3
***************
*** 96,99 ****
--- 96,100 ----
void closeStore( void );
+ bool exists( CharPtr );
Handle openRead( CharPtr );
Handle openWrite( CharPtr );
Index: SchemaCatStore.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatStore.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SchemaCatStore.hpp 2001/04/15 16:36:08 1.1
--- SchemaCatStore.hpp 2001/04/21 21:39:01 1.2
***************
*** 117,120 ****
--- 117,126 ----
virtual CollectionPtr read( CollectionPtr ) ;
+ /**
+ Returns a collection created by virtue of calling
+ a read operation
+ @param Collection pointer from Store::read
+ */
+
virtual void returnReadCollection( CollectionPtr );
***************
*** 125,128 ****
--- 131,141 ----
virtual void write( CollectionPtr ) ;
+
+ /**
+ Remove one or more object from a store
+ @param Collection pointer to identifications and objects
+ */
+
+ virtual void remove( CollectionPtr );
protected:
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** SchemaCatalog.hpp 2001/04/20 11:16:31 1.7
--- SchemaCatalog.hpp 2001/04/21 21:39:01 1.8
***************
*** 146,149 ****
--- 146,163 ----
virtual void deleteEntry( CollectionPtr );
+ /**
+ Create an iterator over the catalog entries as defined by
+ the catalog type, for this case it is an iterator which
+ returns a FrameworkStringPtr, which is the name of the
+ Schema which the entry represents
+ @returns Iterator pointer to FrameworkString pointers
+ */
+
+ virtual Iterator<FrameworkEntityPtr> *createCatalogIterator( void ) ;
+
+ /// Destroy the iterator over the catalog entries
+
+ virtual void destroyIterator( Iterator<FrameworkEntityPtr> * ) ;
+
protected:
Index: SchemaStore.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaStore.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SchemaStore.hpp 2001/04/20 11:16:31 1.3
--- SchemaStore.hpp 2001/04/21 21:39:01 1.4
***************
*** 46,50 ****
class SchemaStore : public SchemaAbstractStore
{
-
DECLARE_METATYPEMEMBERS( SchemaStore );
--- 46,49 ----
***************
*** 108,112 ****
/// Retrieves the schema
! SchemaPtr getSchema( void ) const;
//
--- 107,111 ----
/// Retrieves the schema
! SchemaPtr getSchema( void ) ;
//
***************
*** 165,168 ****
--- 164,173 ----
virtual CollectionPtr read( CollectionPtr ) ;
+ /**
+ Returns a collection created by virtue of calling
+ a read operation
+ @param Collection pointer from Store::read
+ */
+
virtual void returnReadCollection( CollectionPtr );
***************
*** 174,182 ****
--- 179,197 ----
virtual void write( CollectionPtr ) ;
+ /**
+ Remove one or more object from a store
+ @param Collection pointer to identifications and objects
+ */
+
+ virtual void remove( CollectionPtr );
+
protected:
+ virtual SchemaPtr createSchema( void );
+
private:
SchemaPtr theSchema;
+ bool theCreatedFlag;
FrameworkString theName;
FrameworkString theLocation;
***************
*** 184,189 ****
UniversalIdentifier theSchemaClassId;
UniversalIdentifier theSchemaUid;
-
-
};
}
--- 199,202 ----
Index: Store.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Store.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Store.hpp 2001/04/20 11:16:31 1.3
--- Store.hpp 2001/04/21 21:39:01 1.4
***************
*** 145,149 ****
virtual void returnReadCollection( CollectionPtr ) = 0;
-
/**
Write one or more objects to a store
--- 145,148 ----
***************
*** 152,155 ****
--- 151,162 ----
virtual void write( CollectionPtr ) = 0;
+
+ /**
+ Remove one or more object from a store
+ @param Collection pointer to identifications and objects
+ */
+
+ virtual void remove( CollectionPtr ) = 0;
+
protected:
|