2011CaoTme45: Indentation.h

File Indentation.h, 520 bytes (added by jpc, 14 years ago)

C++ Source: Indentation.h

Line 
1
2#ifndef  __INDENTATION_H__
3#define  __INDENTATION_H__
4
5#include <string>
6#include <iostream>
7
8
9class Indentation {
10  public:
11                  Indentation ();
12    Indentation&  operator++  ();
13    Indentation   operator++  (int);
14    Indentation&  operator--  ();
15    Indentation   operator--  (int);
16  private:
17    size_t        _tabulationSize;
18    std::string   _indentation;
19
20    friend std::ostream& operator<< ( std::ostream&, const Indentation& );
21};
22
23
24extern Indentation  indent;
25
26
27#endif //  __INDENTATION_H__