|
From: Frank V. C. <fr...@us...> - 2001-04-12 11:58:15
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv13585/clfw/Persist
Modified Files:
Makefile.am Persist.hpp SchemaCatalog.hpp
Added Files:
Store.hpp
Log Message:
Adding last piece to Schema and Persist Puzzle, the real deal interfaces to storage
***** Error reading new file: [Errno 2] No such file or directory: 'Store.hpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 2001/04/08 10:50:43 1.3
--- Makefile.am 2001/04/12 11:56:53 1.4
***************
*** 17,21 ****
SchemaSponsor.hpp \
StoreCatalog.hpp \
! SchemaCatalog.hpp
--- 17,22 ----
SchemaSponsor.hpp \
StoreCatalog.hpp \
! SchemaCatalog.hpp \
! Store.hpp
Index: Persist.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Persist.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Persist.hpp 2001/04/08 10:50:43 1.3
--- Persist.hpp 2001/04/12 11:56:53 1.4
***************
*** 36,39 ****
--- 36,40 ----
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
#define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
+ #define INCL_Store <clfw/Persist/Store.hpp>
/*
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SchemaCatalog.hpp 2001/04/11 01:39:25 1.4
--- SchemaCatalog.hpp 2001/04/12 11:56:53 1.5
***************
*** 30,33 ****
--- 30,37 ----
#endif
+ #if !defined(__SETCOLLECTION_HPP)
+ #include <clfw/SetCollection.hpp>
+ #endif
+
#if !defined(__STORECATALOG_HPP)
#include <clfw/Persist/StoreCatalog.hpp>
***************
*** 90,94 ****
void saveSchema( SchemaPtr );
! /// Close the instance
void closeSchema( SchemaPtr );
--- 94,98 ----
void saveSchema( SchemaPtr );
! /// Close the instance
void closeSchema( SchemaPtr );
***************
*** 142,146 ****
-
protected:
--- 146,149 ----
***************
*** 169,172 ****
--- 172,184 ----
) throw ();
+ /**
+ Creates a collection for a instantiating schema. This
+ allows the user to override the default SetCollection
+ with their own choice using the "Collection" attribute
+ in createEntry
+ @param Collection from user initiated call
+ @returns Collection instance for new schema
+ */
+
CollectionPtr resolveCollectionAssignment
(
***************
*** 174,177 ****
--- 186,197 ----
);
+ /**
+ Creates a UniversalIdentifier for the instantiating
+ schema or allows the user to override with "GUID"
+ attribute in createEntry
+ @param Collection from user initiated call
+ @returns FrameworkString with stringified uuid
+ */
+
FrameworkString resolveUuidAssignment
(
***************
*** 179,187 ****
);
FrameworkStringPtr resolveValueAssignment
(
CollectionPtr,
FrameworkStringPtr
! );
private:
--- 199,217 ----
);
+ /**
+ General function to resolve attribute from
+ collection
+ @param Collection from user
+ @param FrameworkString for key to search on
+ @returns FrameworkString value that goes
+ with key
+ */
+
FrameworkStringPtr resolveValueAssignment
(
CollectionPtr,
FrameworkStringPtr
! ) const;
!
private:
***************
*** 195,198 ****
--- 225,231 ----
FrameworkString theStoresRoot;
+ /// The in memory catalog of schemas
+
+ SetCollection theSchemas;
};
}
|