Panda3D
pandatool
src
progbase
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
*/
30
class
WordWrapStream
:
public
std::ostream {
31
public
:
32
WordWrapStream
(
ProgramBase
*program);
33
34
private
:
35
WordWrapStreamBuf
_lsb;
36
};
37
38
#endif
WordWrapStream
A special ostream that formats all of its output through ProgramBase::show_text().
Definition:
wordWrapStream.h:30
ProgramBase
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition:
programBase.h:34
WordWrapStreamBuf
Used by WordWrapStream to implement an ostream that flushes its output to ProgramBase::show_text().
Definition:
wordWrapStreamBuf.h:28
wordWrapStreamBuf.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sun Dec 27 2020 13:23:22 for Panda3D by
1.8.20