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/file.hpp

    r157 r168  
    99#include "data_output.hpp" 
    1010 
    11 namespace xmlioserver 
    12 { 
    13    namespace tree 
     11namespace xmlioserver { 
     12namespace tree { 
     13    
     14   /// ////////////////////// Déclarations ////////////////////// /// 
     15 
     16   class CFileGroup; 
     17   class CFileAttributes; 
     18   class CFile; 
     19 
     20   ///-------------------------------------------------------------- 
     21 
     22   // Declare/Define CFileAttribute 
     23   BEGIN_DECLARE_ATTRIBUTE_MAP(CFile) 
     24   #include "file_attribute.conf" 
     25   END_DECLARE_ATTRIBUTE_MAP(CFile) 
     26 
     27   ///-------------------------------------------------------------- 
     28 
     29   class CFile 
     30      : public CObjectTemplate<CFile> 
     31      , public CFileAttributes 
    1432   { 
    15       /// ////////////////////// Déclarations ////////////////////// /// 
     33         /// typedef /// 
     34         typedef CObjectTemplate<CFile>   SuperClass; 
     35         typedef CFileAttributes SuperClassAttribute; 
    1636 
    17       class CFileGroup; 
    18       class CFileAttributes; 
    19       class CFile; 
     37      public : 
    2038 
    21       ///-------------------------------------------------------------- 
     39         typedef CFileAttributes RelAttributes; 
     40         typedef CFileGroup      RelGroup; 
    2241 
    23       // Declare/Define CFileAttribute 
    24       BEGIN_DECLARE_ATTRIBUTE_MAP(CFile) 
    25 #include "file_attribute.conf" 
    26       END_DECLARE_ATTRIBUTE_MAP(CFile) 
     42         /// Constructeurs /// 
     43         CFile(void); 
     44         explicit CFile(const StdString & id); 
     45         CFile(const CFile & file);       // Not implemented yet. 
     46         CFile(const CFile * const file); // Not implemented yet. 
    2747 
    28       ///-------------------------------------------------------------- 
     48         /// Accesseurs /// 
     49         boost::shared_ptr<CFieldGroup> getVirtualFieldGroup(void) const; 
     50         std::vector<boost::shared_ptr<CField> > getAllFields(void) const; 
    2951 
    30       class CFile 
    31          : public CObjectTemplate<CFile> 
    32          , public CFileAttributes 
    33       { 
    34             /// typedef /// 
    35             typedef CObjectTemplate<CFile>   SuperClass; 
    36             typedef CFileAttributes SuperClassAttribute; 
     52         std::vector<boost::shared_ptr<CField> > 
     53            getEnabledFields(int default_outputlevel = 5, 
     54                             int default_level = 1, 
     55                             bool default_enabled = true); 
    3756 
    38          public : 
     57         /// Mutateurs /// 
     58         void setVirtualFieldGroup(boost::shared_ptr<CFieldGroup> newVFieldGroup); 
     59         void setVirtualFieldGroup(const StdString & newVFieldGroupId); 
    3960 
    40             typedef CFileAttributes RelAttributes; 
    41             typedef CFileGroup      RelGroup; 
     61         void initializeDataOutput(boost::shared_ptr<io::CDataOutput> dout); 
    4262 
    43             /// Constructeurs /// 
    44             CFile(void); 
    45             explicit CFile(const StdString & id); 
    46             CFile(const CFile & file);       // Not implemented yet. 
    47             CFile(const CFile * const file); // Not implemented yet. 
     63         /// Traitements /// 
     64         virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 
     65         void solveFieldRefInheritance(void); 
     66         void solveEFGridRef(void); 
     67         void solveEFOperation(void); 
    4868 
    49             /// Accesseurs /// 
    50             boost::shared_ptr<CFieldGroup> getVirtualFieldGroup(void) const; 
    51             std::vector<boost::shared_ptr<CField> > getAllFields(void) const; 
     69         /// Destructeur /// 
     70         virtual ~CFile(void); 
    5271 
    53             std::vector<boost::shared_ptr<CField> > 
    54                getEnabledFields(int default_outputlevel = 5, 
    55                                 int default_level = 1, 
    56                                 bool default_enabled = true); 
     72         /// Autres /// 
     73         virtual void parse(xml::CXMLNode & node); 
     74         virtual StdString toString(void) const; 
    5775 
    58             /// Mutateurs /// 
    59             void setVirtualFieldGroup(boost::shared_ptr<CFieldGroup> newVFieldGroup); 
    60             void setVirtualFieldGroup(const StdString & newVFieldGroupId); 
     76         /// Accesseurs statiques /// 
     77         static StdString GetName(void); 
     78         static StdString GetDefName(void); 
     79          
     80         static ENodeType GetType(void); 
    6181 
    62             void initializeDataOutput(boost::shared_ptr<io::CDataOutput> dout); 
     82      private : 
    6383 
    64             /// Traitements /// 
    65             virtual void solveDescInheritance(const CAttributeMap * const parent = 0); 
    66             void solveFieldRefInheritance(void); 
    67             void solveEFGridRef(void); 
    68             void solveEFOperation(void); 
     84         /// Propriétés privées /// 
     85         boost::shared_ptr<CFieldGroup> vFieldGroup; 
     86         boost::shared_ptr<io::CDataOutput> data_out; 
     87         std::vector<boost::shared_ptr<CField> > enabledFields; 
    6988 
    70             /// Destructeur /// 
    71             virtual ~CFile(void); 
     89   }; // class CFile 
    7290 
    73             /// Autres /// 
    74             virtual void parse(xml::CXMLNode & node); 
    75             virtual StdString toString(void) const; 
     91   ///-------------------------------------------------------------- 
    7692 
    77             /// Accesseurs statiques /// 
    78             static StdString GetName(void); 
    79             static StdString GetDefName(void); 
     93   // Declare/Define CFileGroup and CFileDefinition 
     94   DECLARE_GROUP(CFile); 
    8095 
    81          private : 
     96   ///-------------------------------------------------------------- 
    8297 
    83             /// Propriétés privées /// 
    84             boost::shared_ptr<CFieldGroup> vFieldGroup; 
    85             boost::shared_ptr<io::CDataOutput> data_out; 
    86             std::vector<boost::shared_ptr<CField> > enabledFields; 
    87  
    88       }; // class CFile 
    89  
    90       ///-------------------------------------------------------------- 
    91  
    92       // Declare/Define CFileGroup and CFileDefinition 
    93       DECLARE_GROUP(CFile); 
    94  
    95    } // namespace tree 
     98} // namespace tree 
    9699} // namespace xmlioserver 
    97100 
Note: See TracChangeset for help on using the changeset viewer.