#include "CTBline.hxx"
Collaboration diagram for CTBline:
Public Methods | |
CTBline () | |
~CTBline () | |
void | Set (const char *c_line) |
const char * | Get () const |
void | ContinueLine (bool b_continue) |
void | CommentDelimiter (char c_comment) |
void | TrimWhite (bool b_trim) |
void | ToLowerCase (bool b_lower) |
void | SkipEmpty (bool b_skip) |
bool | ContinueLine () const |
char | CommentDelimiter () const |
bool | TrimWhite () const |
bool | ToLowerCase () const |
bool | SkipEmpty () const |
bool | Good () |
bool | Fail () |
bool | Bad () |
bool | Eof () |
void | FromStream (istream &is) |
istrstream & | GetStream () |
bool | operator! () const |
operator void * () const | |
Private Methods | |
void | SetupString () |
void | SetupStream () |
Private Attributes | |
CTBstring | m_string |
bool | mb_streamvalid |
istrstream | m_stream |
bool | mb_continue |
char | mc_comment |
bool | mb_trimwhite |
bool | mb_tolower |
bool | mb_skipempty |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBline &obj) |
istream & | operator>> (istream &is, CTBline &obj) |
template<class T> CTBline & | operator>> (CTBline &line, T &obj) |
Definition at line 20 of file CTBline.hxx.
|
Default constructor.
Definition at line 27 of file CTBline.cxx. |
|
Destructor.
Definition at line 40 of file CTBline.cxx. |
|
Set line to c_line.
Definition at line 46 of file CTBline.cxx. |
|
Access line as
Definition at line 17 of file CTBline.icc. Referenced by operator<<().
|
|
A backslash-newline will start a continuation line.
Definition at line 25 of file CTBline.icc. |
|
All characters after c_comment are discarted.
Definition at line 34 of file CTBline.icc. |
|
Leading and trailing white space will be trimmed if b_trim is
Definition at line 43 of file CTBline.icc. |
|
All characters will be converted to lower case if b_lower is
Definition at line 52 of file CTBline.icc. |
|
Empty lines will be skipped if b_skip is
Definition at line 61 of file CTBline.icc. |
|
Returns
Definition at line 70 of file CTBline.icc. |
|
Returns comment delimiter.
Definition at line 78 of file CTBline.icc. |
|
Returns
Definition at line 86 of file CTBline.icc. |
|
Returns
Definition at line 94 of file CTBline.icc. |
|
Returns
Definition at line 102 of file CTBline.icc. |
|
Returns
Definition at line 110 of file CTBline.icc. |
|
Returns
Definition at line 118 of file CTBline.icc. |
|
Returns
Definition at line 126 of file CTBline.icc. |
|
Returns
Definition at line 134 of file CTBline.icc. |
|
Read a new line from input stream is. INTERNAL.
Definition at line 58 of file CTBline.cxx. Referenced by operator>>().
|
|
Access internal string stream representation of line. INTERNAL.
Definition at line 144 of file CTBline.icc. Referenced by Bad(), Eof(), Fail(), Good(), and operator>>().
|
|
Returns
Definition at line 153 of file CTBline.icc. |
|
Returns
Definition at line 161 of file CTBline.icc. |
|
Perform transformations of the input characters (like trim and casing).
Definition at line 71 of file CTBline.cxx. Referenced by FromStream(), and Set().
|
|
Convert line into a string stream.
Definition at line 82 of file CTBline.cxx. Referenced by GetStream().
|
|
ostream insertion.
Definition at line 172 of file CTBline.icc. |
|
istream extraction.
Definition at line 184 of file CTBline.icc. |
|
extract object obj of type
Definition at line 197 of file CTBline.icc. |
|
Definition at line 58 of file CTBline.hxx. |
|
Definition at line 60 of file CTBline.hxx. |
|
Definition at line 61 of file CTBline.hxx. |
|
Definition at line 63 of file CTBline.hxx. |
|
Definition at line 64 of file CTBline.hxx. |
|
Definition at line 65 of file CTBline.hxx. |
|
Definition at line 66 of file CTBline.hxx. |
|
Definition at line 67 of file CTBline.hxx. |