|
From: Frank V. C. <fr...@us...> - 2001-03-31 14:05:04
|
Update of /cvsroot/corelinux/clfw/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv21774/clfw
Modified Files:
Attribute.hpp Concept.hpp Schema.hpp
Log Message:
Added attributes and re-orged Concept->Schema
Index: Attribute.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Attribute.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Attribute.hpp 2001/03/30 11:48:38 1.1
--- Attribute.hpp 2001/03/31 14:04:59 1.2
***************
*** 36,40 ****
/**
Attribute is an element of an entity that captures the expression
! of a property for that entity.
*/
--- 36,41 ----
/**
Attribute is an element of an entity that captures the expression
! of a property for that entity. The form of an attribute is generally
! the same as a Name Value pair (NV)
*/
***************
*** 76,79 ****
--- 77,90 ----
// Accessors
//
+
+ /// Expose the name data member
+
+ DECLARE_INSTANCEDATA( CharPtr , Name );
+
+ /// Expose the value data member
+
+ DECLARE_INSTANCEDATA( FrameworkEntityPtr, Value );
+
+
Index: Concept.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Concept.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Concept.hpp 2001/03/26 13:17:21 1.1
--- Concept.hpp 2001/03/31 14:04:59 1.2
***************
*** 26,29 ****
--- 26,33 ----
#endif
+ #if !defined(__SETCOLLECTION_HPP)
+ #include <clfw/SetCollection.hpp>
+ #endif
+
#if !defined(__AGGREGATE_HPP)
#include <clfw/Aggregate.hpp>
***************
*** 32,40 ****
namespace corelinux
{
DECLARE_CLASS( Concept );
/**
Concept is an element of a schema and represent the extent
! of a piece of knowledge or idea.
*/
--- 36,46 ----
namespace corelinux
{
+ DECLARE_CLASS( Attribute );
DECLARE_CLASS( Concept );
/**
Concept is an element of a schema and represent the extent
! of a piece of knowledge or idea. Concepts have attributes
! which define various aspects of the concept
*/
***************
*** 77,80 ****
--- 83,104 ----
//
+ virtual AttributePtr getAttribute( CharPtr );
+ virtual SetCollectionPtr getPropertyKeys( void );
+
+ //
+ // Mutators
+ //
+
+ virtual void addAttribute( AttributePtr );
+ virtual void removeAttribute( AttributePtr );
+ virtual void removeAttribute( CharPtr );
+
+ //
+ // Meta exposed
+ //
+
+ /// A collection for attributes
+
+ DECLARE_INSTANCEDATA( CollectionPtr, Properties );
protected:
Index: Schema.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Schema.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Schema.hpp 2001/03/26 13:17:21 1.1
--- Schema.hpp 2001/03/31 14:04:59 1.2
***************
*** 26,31 ****
#endif
! #if !defined(__AGGREGATE_HPP)
! #include <clfw/Aggregate.hpp>
#endif
--- 26,31 ----
#endif
! #if !defined(__CONCEPT_HPP)
! #include <clfw/Concept.hpp>
#endif
***************
*** 38,42 ****
*/
! class Schema : public Aggregate
{
--- 38,42 ----
*/
! class Schema : public Concept
{
|