|
From: Frank V. C. <fr...@us...> - 2001-04-10 21:17:53
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv31067/clfw/Persist
Modified Files:
SchemaCatalog.hpp SchemaSponsor.hpp
Log Message:
Added profile and schema location support
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SchemaCatalog.hpp 2001/04/08 12:59:07 1.2
--- SchemaCatalog.hpp 2001/04/10 21:17:50 1.3
***************
*** 26,41 ****
#endif
#if !defined(__STORECATALOG_HPP)
#include <clfw/Persist/StoreCatalog.hpp>
#endif
- #if !defined(__OBSERVER_HPP)
- #include <corelinux/Observer.hpp>
- #endif
namespace corelinux
{
DECLARE_CLASS( Schema );
- DECLARE_CLASS( FrameworkString );
DECLARE_CLASS( SchemaCatalog );
--- 26,41 ----
#endif
+ #if !defined(__FRAMEWORKSTRING_HPP)
+ #include <clfw/FrameworkString.hpp>
+ #endif
+
#if !defined(__STORECATALOG_HPP)
#include <clfw/Persist/StoreCatalog.hpp>
#endif
namespace corelinux
{
DECLARE_CLASS( Schema );
DECLARE_CLASS( SchemaCatalog );
***************
*** 86,91 ****
--- 86,95 ----
// Mutators
//
+ /// Save the instance as is
+
void saveSchema( SchemaPtr );
+ /// Close the instance
+
void closeSchema( SchemaPtr );
***************
*** 142,145 ****
--- 146,163 ----
private:
+ /// Basic setup for instances
+
+ void resolveLocations( void );
+
+ /**
+ createSchema is the workhorse which goes through
+ both the catalog entry creation, and the actual
+ schema creation
+ @param FrameworkString reference to Key (UUID)
+ @param FrameworkString reference to Name
+ @param FrameworkString reference to Location for schema
+ @returns Schema pointer ready to populate
+ */
+
SchemaPtr createSchema
(
***************
*** 148,151 ****
--- 166,179 ----
FrameworkStringCref
) throw ();
+
+ private:
+
+ /// The location of the catalog
+
+ FrameworkString theCatalogRoot;
+
+ /// The location of the stores
+
+ FrameworkString theStoresRoot;
};
Index: SchemaSponsor.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaSponsor.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SchemaSponsor.hpp 2001/04/08 10:50:43 1.1
--- SchemaSponsor.hpp 2001/04/10 21:17:50 1.2
***************
*** 88,91 ****
--- 88,93 ----
private:
+ static StoreCatalogPtr theStoreCatalog;
+
};
}
|