hpp-util  4.9.0
Debugging tools for the HPP project.
indent.hh
Go to the documentation of this file.
1 // Copyright (C) 2008, 2009 by Thomas Moulard, CNRS.
2 //
3 // This file is part of the hpp-util.
4 //
5 // This software is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the
7 // implied warranties of fitness for a particular purpose.
8 //
9 // See the COPYING file for more information.
10 
11 #ifndef HPP_UTIL_INDENT_HH
12 # define HPP_UTIL_INDENT_HH
13 # include <iosfwd>
14 
15 # include <hpp/util/config.hh>
16 
17 namespace hpp
18 {
20  HPP_UTIL_DLLAPI long& indent (std::ostream& o);
21 
23  HPP_UTIL_DLLAPI std::ostream& incindent (std::ostream& o);
24 
26  HPP_UTIL_DLLAPI std::ostream& decindent (std::ostream& o);
27 
29  HPP_UTIL_DLLAPI std::ostream& resetindent (std::ostream& o);
30 
32  HPP_UTIL_DLLAPI std::ostream& iendl (std::ostream& o);
33 
36  HPP_UTIL_DLLAPI std::ostream& incendl (std::ostream& o);
37 
40  HPP_UTIL_DLLAPI std::ostream& decendl (std::ostream& o);
41 
42 } // end of namespace hpp.
43 
44 #endif // !HPP_UTIL_INDENT_HH
HPP_UTIL_DLLAPI std::ostream & incendl(std::ostream &o)
Increment the indentation, print an end of line, and set the indentation.
Definition: indent.cc:64
HPP_UTIL_DLLAPI std::ostream & incindent(std::ostream &o)
Increment the indentation.
Definition: indent.cc:33
Definition: assertion.hh:24
HPP_UTIL_DLLAPI std::ostream & iendl(std::ostream &o)
Print an end of line, then set the indentation.
Definition: indent.cc:54
HPP_UTIL_DLLAPI long & indent(std::ostream &o)
The current indentation level for o.
Definition: indent.cc:26
HPP_UTIL_DLLAPI std::ostream & decindent(std::ostream &o)
Decrement the indentation.
Definition: indent.cc:39
HPP_UTIL_DLLAPI std::ostream & resetindent(std::ostream &o)
Reset the indentation.
Definition: indent.cc:48
HPP_UTIL_DLLAPI std::ostream & decendl(std::ostream &o)
Decrement the indentation, print an end of line, and set the indentation.
Definition: indent.cc:69