|
From: Frank V. C. <fr...@us...> - 2001-04-21 21:39:05
|
Update of /cvsroot/corelinux/clfw/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv16775/clfw
Modified Files:
Catalog.hpp MetaClass.hpp Ontology.hpp
Log Message:
Creates actual schema db now, although no content. Cleaning, testing, and embellishing
Index: Catalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Catalog.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Catalog.hpp 2001/04/08 12:59:06 1.2
--- Catalog.hpp 2001/04/21 21:39:01 1.3
***************
*** 90,93 ****
--- 90,97 ----
virtual FrameworkEntityPtr getEntry( CollectionPtr ) const = 0;
+ //
+ // Mutators
+ //
+
/**
Interface to create a new entry in the catalog.
***************
*** 109,112 ****
--- 113,132 ----
virtual void deleteEntry( CollectionPtr ) = 0;
+
+ //
+ // Iterator operations
+ //
+
+ /**
+ Create an iterator over the catalog entries as defined by
+ the catalog type
+ @returns Iterator pointer to FrameworkEntity pointers
+ */
+
+ virtual Iterator<FrameworkEntityPtr> *createCatalogIterator( void ) = 0;
+
+ /// Destroy the iterator over the catalog entries
+
+ virtual void destroyIterator( Iterator<FrameworkEntityPtr> * ) = 0;
protected:
Index: MetaClass.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/MetaClass.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** MetaClass.hpp 2000/11/17 13:07:08 1.5
--- MetaClass.hpp 2001/04/21 21:39:01 1.6
***************
*** 71,74 ****
--- 71,78 ----
bool operator==( MetaClassCref ) const;
+ /// Get the class identifier
+
+ UniversalIdentifierCref getIdentifier( void ) const;
+
/// Return the object type for this meta class
Index: Ontology.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Ontology.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Ontology.hpp 2001/04/11 01:39:25 1.7
--- Ontology.hpp 2001/04/21 21:39:01 1.8
***************
*** 100,106 ****
*/
! static MetaClassPtr getClassFor( CharCptr, CharCptr ontology=NULLPTR )
throw ( NullPointerException, DescriptorNotFound );
//
// Mutators
--- 100,126 ----
*/
! static MetaClassPtr getClassFor
! (
! CharCptr,
! CharCptr ontology=NULLPTR
! )
throw ( NullPointerException, DescriptorNotFound );
+ /**
+ Get the metaclass as defined by the class id and ontology name
+ @param UniversalIdentifier to class type
+ @param Char pointer to ontology name (i.e. "MySpace")
+ defaults to "corelinux" in implementation
+ @returns MetaClass pointer to resolved class
+ @exception NullPointerException and/or
+ DescriptorNotFoundException if not resolvable
+ */
+
+ static MetaClassPtr getClassFor
+ (
+ UniversalIdentifierCref,
+ CharCptr ontology = NULLPTR
+ )
+ throw ( NullPointerException, DescriptorNotFound );
//
// Mutators
|