hpp-util  4.13.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 
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // 1. Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 //
11 // 2. Redistributions in binary form must reproduce the above copyright
12 // notice, this list of conditions and the following disclaimer in the
13 // documentation and/or other materials provided with the distribution.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26 // DAMAGE.
27 //
28 // This software is provided "as is" without warranty of any kind,
29 // either expressed or implied, including but not limited to the
30 // implied warranties of fitness for a particular purpose.
31 //
32 // See the COPYING file for more information.
33 
34 #ifndef HPP_UTIL_INDENT_HH
35 #define HPP_UTIL_INDENT_HH
36 #include <hpp/util/config.hh>
37 #include <iosfwd>
38 
39 namespace hpp {
41 HPP_UTIL_DLLAPI long& indent(std::ostream& o);
42 
44 HPP_UTIL_DLLAPI std::ostream& incindent(std::ostream& o);
45 
47 HPP_UTIL_DLLAPI std::ostream& decindent(std::ostream& o);
48 
50 HPP_UTIL_DLLAPI std::ostream& resetindent(std::ostream& o);
51 
53 HPP_UTIL_DLLAPI std::ostream& iendl(std::ostream& o);
54 
57 HPP_UTIL_DLLAPI std::ostream& incendl(std::ostream& o);
58 
61 HPP_UTIL_DLLAPI std::ostream& decendl(std::ostream& o);
62 
63 } // end of namespace hpp.
64 
65 #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:67
HPP_UTIL_DLLAPI std::ostream & incindent(std::ostream &o)
Increment the indentation.
Definition: indent.cc:41
Definition: assertion.hh:45
HPP_UTIL_DLLAPI std::ostream & iendl(std::ostream &o)
Print an end of line, then set the indentation.
Definition: indent.cc:60
HPP_UTIL_DLLAPI long & indent(std::ostream &o)
The current indentation level for o.
Definition: indent.cc:35
#define HPP_UTIL_DLLAPI
Definition: config.hh:64
HPP_UTIL_DLLAPI std::ostream & decindent(std::ostream &o)
Decrement the indentation.
Definition: indent.cc:46
HPP_UTIL_DLLAPI std::ostream & resetindent(std::ostream &o)
Reset the indentation.
Definition: indent.cc:55
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