source: XIOS/dev/branch_yushan_merged/src/indent_xml.hpp @ 1179

Last change on this file since 1179 was 1134, checked in by yushan, 7 years ago

branch merged with trunk r1130

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 1.3 KB
RevLine 
[591]1#ifndef __XIOS_CIndent_XML__
2#define __XIOS_CIndent_XML__
[313]3
[591]4/// XIOS headers ///
5#include "xios_spl.hpp"
[313]6#include "xml_node.hpp"
7
[335]8namespace xios
[313]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;
[1134]24         #pragma omp threadprivate(Indent)
25
[313]26         static StdString    Increm;
[1134]27         #pragma omp threadprivate(Increm)
28
[313]29         static bool         WithLine;
[1134]30         #pragma omp threadprivate(WithLine)
[313]31
32   }; // class CIndent
33
34    ///--------------------------------------------------------------
35   
36   class CIndentedXml
37   {
38      public :
39
40         /// Méthode statique ///
41         static StdString Indented(const StdString & content);
42
43   }; // class CIndentedXml
44
45    ///--------------------------------------------------------------
46
[335]47} // namespace xios
[313]48
49   /// ////////////////////// Macros ////////////////////// ///
50   
51#define NIndent   CIndent::NIndent
52#define IncIndent CIndent::IncIndent
53#define DecEndl   CIndent::DecEndl
54
[591]55#endif // __XIOS_CIndent__
Note: See TracBrowser for help on using the repository browser.