Last change
on this file since 328 was
313,
checked in by ymipsl, 13 years ago
|
Fortran attribut interface are now automaticaly generated.
Add get attribut fonctionnality from fortran.
YM
|
File size:
1.2 KB
|
Rev | Line | |
---|
[313] | 1 | #ifndef __XMLIO_CIndent_XML__ |
---|
| 2 | #define __XMLIO_CIndent_XML__ |
---|
| 3 | |
---|
| 4 | /// xmlioserver headers /// |
---|
| 5 | #include "xmlioserver_spl.hpp" |
---|
| 6 | #include "xml_node.hpp" |
---|
| 7 | |
---|
| 8 | namespace xmlioserver |
---|
| 9 | { |
---|
| 10 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 11 | class CIndent |
---|
| 12 | { |
---|
| 13 | public : |
---|
| 14 | |
---|
| 15 | /// Méthodes statiques /// |
---|
| 16 | static StdOStream & NIndent (StdOStream & out); |
---|
| 17 | static StdOStream & IncIndent(StdOStream & out); |
---|
| 18 | static StdOStream & DecEndl (StdOStream & out); |
---|
| 19 | |
---|
| 20 | private : |
---|
| 21 | |
---|
| 22 | /// Propriétés statiques /// |
---|
| 23 | static unsigned int Indent; |
---|
| 24 | static StdString Increm; |
---|
| 25 | static bool WithLine; |
---|
| 26 | |
---|
| 27 | }; // class CIndent |
---|
| 28 | |
---|
| 29 | ///-------------------------------------------------------------- |
---|
| 30 | |
---|
| 31 | class CIndentedXml |
---|
| 32 | { |
---|
| 33 | public : |
---|
| 34 | |
---|
| 35 | /// Méthode statique /// |
---|
| 36 | static StdString Indented(const StdString & content); |
---|
| 37 | |
---|
| 38 | }; // class CIndentedXml |
---|
| 39 | |
---|
| 40 | ///-------------------------------------------------------------- |
---|
| 41 | |
---|
| 42 | } // namespace xmlioserver |
---|
| 43 | |
---|
| 44 | /// ////////////////////// Macros ////////////////////// /// |
---|
| 45 | |
---|
| 46 | #define NIndent CIndent::NIndent |
---|
| 47 | #define IncIndent CIndent::IncIndent |
---|
| 48 | #define DecEndl CIndent::DecEndl |
---|
| 49 | |
---|
| 50 | #endif // __XMLIO_CIndent__ |
---|
Note: See
TracBrowser
for help on using the repository browser.