|
From: Frank V. C. <fr...@us...> - 2001-04-08 12:59:10
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv23723/clfw/Persist
Modified Files:
SchemaCatalog.hpp
Log Message:
Fleshing out some details
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SchemaCatalog.hpp 2001/04/08 10:50:43 1.1
--- SchemaCatalog.hpp 2001/04/08 12:59:07 1.2
***************
*** 30,35 ****
--- 30,41 ----
#endif
+ #if !defined(__OBSERVER_HPP)
+ #include <corelinux/Observer.hpp>
+ #endif
+
namespace corelinux
{
+ DECLARE_CLASS( Schema );
+ DECLARE_CLASS( FrameworkString );
DECLARE_CLASS( SchemaCatalog );
***************
*** 75,87 ****
// Accessors
//
! /// Retrieve the entities of the catalog
! virtual CollectionPtr getEntities( void ) const ;
protected:
private:
};
--- 81,151 ----
// Accessors
//
+
! //
! // Mutators
! //
! void saveSchema( SchemaPtr );
! void closeSchema( SchemaPtr );
+ //
+ // Base overrides
+ //
+ /// Retrieve the count of catalog elements
+
+ virtual Counter getCount( void ) const ;
+
+ /**
+ Fetch a Schema based on attributes
+ provided in the collection
+ @param corelinux::Collection a collection of
+ corelinux::Attribute
+ valid Schema get attributes are:
+ "Name" - Defines the name of the schema
+ "GUID" - (optional) provides the stringified
+ UniversalUniqueIdentifier that identifies the schema
+ @returns corelinux::Schema pointer to actual schema
+ */
+
+ virtual FrameworkEntityPtr getEntry( CollectionPtr ) const;
+
+ /**
+ Create a new schema and add entry in the catalog.
+ @param SetCollection a collection of corelinux::Attribute
+ valid Schema creation attributes are:
+ "Name" - Defines the name of the schema
+ "Location" - Can designate where the actual schema resides
+ "GUID" - (optional) provides the stringified
+ UniversalUniqueIdentifier to use instead of generating one
+ */
+
+ virtual void createEntry( CollectionPtr ) ;
+
+ /**
+ Delete a Schema and it's entry in the catalog.
+ @param corelinux::Collection a collection of
+ corelinux::Attribute
+ valid Schema delete attributes are:
+ "Name" - The name of the schema
+ "GUID" - (optional) The stringified
+ UniversalUniqueIdentifier that identifies the schema
+ */
+
+ virtual void deleteEntry( CollectionPtr );
+
+
+
protected:
private:
+
+ SchemaPtr createSchema
+ (
+ FrameworkStringCref,
+ FrameworkStringCref,
+ FrameworkStringCref
+ ) throw ();
};
|