source: XMLIO_V2/dev/common/src/xmlio/manager/tree_manager.hpp @ 219

Last change on this file since 219 was 219, checked in by hozdoba, 10 years ago

Préparation nouvelle arborescence

File size: 2.0 KB
Line 
1#ifndef __XMLIO_CTreeManager__
2#define __XMLIO_CTreeManager__
3
4/// xmlioserver headers ///
5#include "xmlioserver_spl.hpp"
6#include "node_type.hpp"
7#include "xml_parser.hpp"
8#include "indent.hpp"
9
10#undef  DECLARE_ATTRIBUTE
11#define DECLARE_ATTRIBUTE(type, name)  , type * name = NULL
12
13namespace xmlioserver
14{
15   namespace tree
16   {
17      /// ////////////////////// Déclarations ////////////////////// ///
18      class CTreeManager
19      {
20         public :
21
22            /// Mutateurs ///
23            static void SetCurrentContextId(const StdString & id);
24            static boost::shared_ptr<CContext> CreateContext(const StdString & id = StdString(""));
25           
26            template<typename ObjType, typename AttType> // Pas encore implémenté
27               static void SetAttribute(ObjType & obj, const StdString & attname, const AttType & attvalue);
28            template<typename ObjType, typename AttType> // Pas encore implémenté
29               static void SetAttribute(const StdString & objname, const StdString & attname, const AttType & attvalue);
30
31            /// Sortie ///
32            static void PrintTreeToFile(const StdString & path);
33            static void PrintTreeToString(StdString & content);
34            static void PrintTreeToStream(StdOStream & out);
35
36            /// Parsing ///
37            static void ParseFile  (const StdString & filename);
38            static void ParseString(const StdString & xmlContent);
39            static void ParseStream(StdIStream & stream);
40           
41            /// Binaire ///
42            static void ToBinary  (StdOStream & os);
43            static void FromBinary(StdIStream & is);
44            static void FromBinary(StdString & str);
45           
46            static void DomainsToBinary  (StdOStream & os);
47            static void DomainsFromBinary(StdIStream & is);
48            static void DomainsFromBinary(StdString & str);
49
50      }; // class CTreeManager
51
52   } // namespace tree
53} // namespace xmlioserver
54
55#endif // __XMLIO_CTreeManager__
56
Note: See TracBrowser for help on using the repository browser.