Changeset 168 for XMLIO_V2/dev/dev_rv/src/xmlio/node/file.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/file.hpp
r157 r168 9 9 #include "data_output.hpp" 10 10 11 namespace xmlioserver 12 { 13 namespace tree 11 namespace xmlioserver { 12 namespace 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 14 32 { 15 /// ////////////////////// Déclarations ////////////////////// /// 33 /// typedef /// 34 typedef CObjectTemplate<CFile> SuperClass; 35 typedef CFileAttributes SuperClassAttribute; 16 36 17 class CFileGroup; 18 class CFileAttributes; 19 class CFile; 37 public : 20 38 21 ///-------------------------------------------------------------- 39 typedef CFileAttributes RelAttributes; 40 typedef CFileGroup RelGroup; 22 41 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. 27 47 28 ///-------------------------------------------------------------- 48 /// Accesseurs /// 49 boost::shared_ptr<CFieldGroup> getVirtualFieldGroup(void) const; 50 std::vector<boost::shared_ptr<CField> > getAllFields(void) const; 29 51 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); 37 56 38 public : 57 /// Mutateurs /// 58 void setVirtualFieldGroup(boost::shared_ptr<CFieldGroup> newVFieldGroup); 59 void setVirtualFieldGroup(const StdString & newVFieldGroupId); 39 60 40 typedef CFileAttributes RelAttributes; 41 typedef CFileGroup RelGroup; 61 void initializeDataOutput(boost::shared_ptr<io::CDataOutput> dout); 42 62 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); 48 68 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); 52 71 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; 57 75 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); 61 81 62 void initializeDataOutput(boost::shared_ptr<io::CDataOutput> dout);82 private : 63 83 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; 69 88 70 /// Destructeur /// 71 virtual ~CFile(void); 89 }; // class CFile 72 90 73 /// Autres /// 74 virtual void parse(xml::CXMLNode & node); 75 virtual StdString toString(void) const; 91 ///-------------------------------------------------------------- 76 92 77 /// Accesseurs statiques /// 78 static StdString GetName(void); 79 static StdString GetDefName(void); 93 // Declare/Define CFileGroup and CFileDefinition 94 DECLARE_GROUP(CFile); 80 95 81 private :96 ///-------------------------------------------------------------- 82 97 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 96 99 } // namespace xmlioserver 97 100
Note: See TracChangeset
for help on using the changeset viewer.