source: XIOS/dev/branch_yushan/src/indent.hpp @ 1103

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

save modif. Todo: axis, domain, mesh, scalar, transformation

  • 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: 745 bytes
Line 
1#ifndef __XIOS_INDENT_HPP__
2#define __XIOS_INDENT_HPP__
3
4#include <ostream>
5
6namespace xios
7{
8  class Cindent 
9  {
10    public:
11    static int defaultIncSize;
12    #pragma omp threadprivate(defaultIncSize)
13   
14    static int index ;
15    #pragma omp threadprivate(index)
16   
17    int incSize ;
18    int offset ;
19    bool reset ;
20    public :
21
22    Cindent(int i=0, bool r=false) ;
23    Cindent operator++(int) ;
24    Cindent operator--(int) ;
25    Cindent operator++() ;
26    Cindent operator--() ;
27    Cindent operator+=(int n) ;
28    Cindent operator-=(int n) ;
29    std::ostream& iendl(std::ostream& o) const ;
30  };
31 
32  std::ostream& operator <<(std::ostream& o, const Cindent& indent) ;
33
34  extern Cindent iendl;
35  extern Cindent ireset;
36
37} 
38#endif
Note: See TracBrowser for help on using the repository browser.