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 | |
---|
13 | namespace 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 | /// Sortie /// |
---|
27 | static void PrintTreeToFile(const StdString & path); |
---|
28 | static void PrintTreeToString(StdString & content); |
---|
29 | static void PrintTreeToStream(StdOStream & out); |
---|
30 | |
---|
31 | /// Parsing /// |
---|
32 | static void ParseFile (const StdString & filename); |
---|
33 | static void ParseString(const StdString & xmlContent); |
---|
34 | static void ParseStream(StdIStream & stream); |
---|
35 | |
---|
36 | /// Binaire /// |
---|
37 | static void ToBinary (StdOStream & os); |
---|
38 | static void FromBinary(StdIStream & is); |
---|
39 | |
---|
40 | }; // class CTreeManager |
---|
41 | |
---|
42 | } // namespace tree |
---|
43 | } // namespace xmlioserver |
---|
44 | |
---|
45 | #endif // __XMLIO_CTreeManager__ |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.