source: XIOS/dev/branch_openmp/src/indent_xml.hpp @ 2358

Last change on this file since 2358 was 1642, checked in by yushan, 5 years ago

dev on ADA. add flag switch _usingEP/_usingMPI

  • 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.2 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{
[1460]10   /// ////////////////////// Déclarations ////////////////////// ///
11   class CIndent
12   {
13      public :
[313]14
[1460]15         /// Méthodes statiques ///
16         static StdOStream & NIndent  (StdOStream & out);
17         static StdOStream & IncIndent(StdOStream & out);
18         static StdOStream & DecEndl  (StdOStream & out);
[313]19
[1460]20      private :
[313]21
[1460]22         /// Propriétés  statiques ///
23         static unsigned int Indent;
24         static StdString    Increm;
25         static bool         WithLine;
[313]26
[1460]27   }; // class CIndent
[313]28
[1460]29    ///--------------------------------------------------------------
[313]30   
[1460]31   class CIndentedXml
32   {
33      public :
[313]34
[1460]35         /// Méthode statique ///
36         static StdString Indented(const StdString & content);
[313]37
[1460]38   }; // class CIndentedXml
[313]39
[1460]40    ///--------------------------------------------------------------
41
[335]42} // namespace xios
[313]43
44   /// ////////////////////// Macros ////////////////////// ///
45   
46#define NIndent   CIndent::NIndent
47#define IncIndent CIndent::IncIndent
48#define DecEndl   CIndent::DecEndl
49
[591]50#endif // __XIOS_CIndent__
Note: See TracBrowser for help on using the repository browser.