Ignore:
Timestamp:
04/07/11 15:04:00 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/xmlio/node/context.hpp

    r157 r168  
    88#include "declare_group.hpp" 
    99 
    10 namespace xmlioserver 
    11 { 
    12    namespace tree 
     10namespace xmlioserver { 
     11namespace 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 
    1330   { 
    14       /// ////////////////////// Déclarations ////////////////////// /// 
    15       class CContextGroup; 
    16       class CContextAttributes; 
    17       class CContext; 
     31         /// typedef /// 
     32         typedef CObjectTemplate<CContext>   SuperClass; 
     33         typedef CContextAttributes SuperClassAttribute; 
    1834 
    19       ///-------------------------------------------------------------- 
     35      public : 
    2036 
    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; 
    2539 
    26       ///-------------------------------------------------------------- 
     40         //--------------------------------------------------------- 
    2741 
    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. 
    3547 
    36          public : 
     48         /// Destructeur /// 
     49         virtual ~CContext(void); 
    3750 
    38             typedef CContextAttributes RelAttributes; 
    39             typedef CContext           RelGroup; 
     51         //--------------------------------------------------------- 
    4052 
    41             //--------------------------------------------------------- 
     53         /// Accesseurs statiques /// 
     54         static StdString GetName(void); 
     55         static StdString GetDefName(void); 
     56          
     57         static ENodeType GetType(void); 
    4258 
    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); 
    4860 
    49             /// Destructeur /// 
    50             virtual ~CContext(void); 
     61         /// Traitements /// 
     62         virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 
     63         void solveFieldRefInheritance(void); 
    5164 
    52             //--------------------------------------------------------- 
     65         /// Autres méthodes statiques /// 
     66         static void ShowTree(StdOStream & out = std::clog); 
    5367 
    54             /// Accesseurs statiques /// 
    55             static StdString GetName(void); 
    56             static StdString GetDefName(void); 
     68         /// Test /// 
     69         virtual bool hasChild(void) const; 
    5770 
    58             static boost::shared_ptr<CContextGroup> GetContextGroup(void); 
     71         /// Autres /// 
     72         virtual void parse(xml::CXMLNode & node); 
    5973 
    60             /// Traitements /// 
    61             virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 
    62             void solveFieldRefInheritance(void); 
     74         virtual StdString toString(void) const; 
    6375 
    64             /// Autres méthodes statiques /// 
    65             static void ShowTree(StdOStream & out = std::clog); 
     76   }; // class CContext 
    6677 
    67             /// Test /// 
    68             virtual bool hasChild(void) const; 
     78   ///-------------------------------------------------------------- 
    6979 
    70             /// Autres /// 
    71             virtual void parse(xml::CXMLNode & node); 
     80   // Declare/Define CContextGroup and CContextDefinition 
     81   DECLARE_GROUP(CContext); 
    7282 
    73             virtual StdString toString(void) const; 
     83   ///-------------------------------------------------------------- 
    7484 
    75       }; // class CContext 
    76  
    77       ///-------------------------------------------------------------- 
    78  
    79       // Declare/Define CContextGroup and CContextDefinition 
    80       DECLARE_GROUP(CContext); 
    81  
    82    } // namespace tree 
     85} // namespace tree 
    8386} // namespace xmlioserver 
    8487 
Note: See TracChangeset for help on using the changeset viewer.