Changeset 168 for XMLIO_V2/dev/dev_rv/src/xmlio/node/context.hpp
- Timestamp:
- 04/07/11 15:04:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/xmlio/node/context.hpp
r157 r168 8 8 #include "declare_group.hpp" 9 9 10 namespace xmlioserver 11 { 12 namespace tree 10 namespace xmlioserver { 11 namespace tree { 12 13 /// ////////////////////// Déclarations ////////////////////// /// 14 class CContextGroup; 15 class CContextAttributes; 16 class CContext; 17 18 ///-------------------------------------------------------------- 19 20 // Declare/Define CFileAttribute 21 BEGIN_DECLARE_ATTRIBUTE_MAP(CContext) 22 #include "context_attribute.conf" 23 END_DECLARE_ATTRIBUTE_MAP(CContext) 24 25 ///-------------------------------------------------------------- 26 27 class CContext 28 : public CObjectTemplate<CContext> 29 , public CContextAttributes 13 30 { 14 /// ////////////////////// Déclarations ////////////////////// /// 15 class CContextGroup; 16 class CContextAttributes; 17 class CContext; 31 /// typedef /// 32 typedef CObjectTemplate<CContext> SuperClass; 33 typedef CContextAttributes SuperClassAttribute; 18 34 19 ///--------------------------------------------------------------35 public : 20 36 21 // Declare/Define CFileAttribute 22 BEGIN_DECLARE_ATTRIBUTE_MAP(CContext) 23 #include "context_attribute.conf" 24 END_DECLARE_ATTRIBUTE_MAP(CContext) 37 typedef CContextAttributes RelAttributes; 38 typedef CContext RelGroup; 25 39 26 ///--------------------------------------------------------------40 //--------------------------------------------------------- 27 41 28 class CContext 29 : public CObjectTemplate<CContext> 30 , public CContextAttributes 31 { 32 /// typedef /// 33 typedef CObjectTemplate<CContext> SuperClass; 34 typedef CContextAttributes SuperClassAttribute; 42 /// Constructeurs /// 43 CContext(void); 44 explicit CContext(const StdString & id); 45 CContext(const CContext & context); // Not implemented yet. 46 CContext(const CContext * const context); // Not implemented yet. 35 47 36 public : 48 /// Destructeur /// 49 virtual ~CContext(void); 37 50 38 typedef CContextAttributes RelAttributes; 39 typedef CContext RelGroup; 51 //--------------------------------------------------------- 40 52 41 //--------------------------------------------------------- 53 /// Accesseurs statiques /// 54 static StdString GetName(void); 55 static StdString GetDefName(void); 56 57 static ENodeType GetType(void); 42 58 43 /// Constructeurs /// 44 CContext(void); 45 explicit CContext(const StdString & id); 46 CContext(const CContext & context); // Not implemented yet. 47 CContext(const CContext * const context); // Not implemented yet. 59 static boost::shared_ptr<CContextGroup> GetContextGroup(void); 48 60 49 /// Destructeur /// 50 virtual ~CContext(void); 61 /// Traitements /// 62 virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 63 void solveFieldRefInheritance(void); 51 64 52 //--------------------------------------------------------- 65 /// Autres méthodes statiques /// 66 static void ShowTree(StdOStream & out = std::clog); 53 67 54 /// Accesseurs statiques /// 55 static StdString GetName(void); 56 static StdString GetDefName(void); 68 /// Test /// 69 virtual bool hasChild(void) const; 57 70 58 static boost::shared_ptr<CContextGroup> GetContextGroup(void); 71 /// Autres /// 72 virtual void parse(xml::CXMLNode & node); 59 73 60 /// Traitements /// 61 virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 62 void solveFieldRefInheritance(void); 74 virtual StdString toString(void) const; 63 75 64 /// Autres méthodes statiques /// 65 static void ShowTree(StdOStream & out = std::clog); 76 }; // class CContext 66 77 67 /// Test /// 68 virtual bool hasChild(void) const; 78 ///-------------------------------------------------------------- 69 79 70 /// Autres ///71 virtual void parse(xml::CXMLNode & node);80 // Declare/Define CContextGroup and CContextDefinition 81 DECLARE_GROUP(CContext); 72 82 73 virtual StdString toString(void) const;83 ///-------------------------------------------------------------- 74 84 75 }; // class CContext 76 77 ///-------------------------------------------------------------- 78 79 // Declare/Define CContextGroup and CContextDefinition 80 DECLARE_GROUP(CContext); 81 82 } // namespace tree 85 } // namespace tree 83 86 } // namespace xmlioserver 84 87
Note: See TracChangeset
for help on using the changeset viewer.