Panda3D

dcindent.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file dcindent.h
10 * @author drose
11 * @date 1999-01-16
12 */
13
14 #ifndef DCINDENT_H
15 #define DCINDENT_H
16
17 #include "dcbase.h"
18
19 #ifdef WITHIN_PANDA
20 // If we're compiling this within Panda, we use the function defined there.
21 #include "indent.h"
22
23 #else
24 // Otherwise, we must define it for ourselves.
25
26 /**
27 * A handy function for doing text formatting. This function simply outputs
28 * the indicated number of spaces to the given output stream, returning the
29 * stream itself. Useful for indenting a series of lines of text by a given
30 * amount.
31 */
32 std::ostream &
33 indent(std::ostream &out, int indent_level);
34
35 #endif // WITHIN_PANDA
36
37 #endif // DCINDENT_H
dcbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
indent
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
indent.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.