Panda3D
Loading...
Searching...
No Matches
wordWrapStream.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 wordWrapStream.h
10 * @author drose
11 * @date 2000-06-28
12 */
13
14#ifndef WORDWRAPSTREAM_H
15#define WORDWRAPSTREAM_H
16
17#include "pandatoolbase.h"
18
19#include "wordWrapStreamBuf.h"
20
21/**
22 * A special ostream that formats all of its output through
23 * ProgramBase::show_text(). This allows the program to easily word-wrap its
24 * output messages to fit the terminal width.
25 *
26 * By convention (inherited from show_text), a newline written to the
27 * WordWrapStream indicates a paragraph break, and is generally printed as a
28 * blank line. To force a line break without a paragraph break, use '\r'.
29 */
30class WordWrapStream : public std::ostream {
31public:
33
34private:
36};
37
38#endif
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition programBase.h:34
Used by WordWrapStream to implement an ostream that flushes its output to ProgramBase::show_text().
A special ostream that formats all of its output through ProgramBase::show_text().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.