Ignore:
Timestamp:
02/18/12 22:43:24 (12 years ago)
Author:
ymipsl
Message:

Fortran attribut interface are now automaticaly generated.
Add get attribut fonctionnality from fortran.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/indent.hpp

    r219 r313  
    1 #ifndef __XMLIO_CIndent__ 
    2 #define __XMLIO_CIndent__ 
     1#ifndef __XIOS_INDENT_HPP__ 
     2#define __XIOS_INDENT_HPP__ 
    33 
    4 /// xmlioserver headers /// 
    5 #include "xmlioserver_spl.hpp" 
    6 #include "xml_node.hpp" 
     4#include <ostream> 
    75 
    86namespace xmlioserver 
    97{ 
    10    /// ////////////////////// Déclarations ////////////////////// /// 
    11    class CIndent 
    12    { 
    13       public : 
     8  class Cindent   
     9  { 
     10    public: 
     11    static int defaultIncSize; 
     12    static int index ; 
     13    int incSize ; 
     14    int offset ; 
     15    bool reset ; 
     16    public : 
    1417 
    15          /// Méthodes statiques /// 
    16          static StdOStream & NIndent  (StdOStream & out); 
    17          static StdOStream & IncIndent(StdOStream & out); 
    18          static StdOStream & DecEndl  (StdOStream & out); 
     18    Cindent(int i=0, bool r=false) ; 
     19    Cindent operator++(int) ; 
     20    Cindent operator--(int) ; 
     21    Cindent operator++() ; 
     22    Cindent operator--() ; 
     23    Cindent operator+=(int n) ; 
     24    Cindent operator-=(int n) ; 
     25    std::ostream& iendl(std::ostream& o) const ; 
     26  }; 
     27   
     28  std::ostream& operator <<(std::ostream& o, const Cindent& indent) ; 
    1929 
    20       private : 
     30  extern Cindent iendl; 
     31  extern Cindent ireset; 
    2132 
    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__ 
     33 
     34#endif 
Note: See TracChangeset for help on using the changeset viewer.