#include <diversion.h>
Public Member Functions | |
virtual | ~sub_diversion () |
sub_diversion () | |
sub_diversion (const wstring &arg1, bool arg2=false) | |
sub_diversion (const sub_diversion &) | |
sub_diversion & | operator= (const sub_diversion &) |
bool | resub_both () const |
wchar_t | getch () |
void | ungetch (wchar_t wc) |
Private Attributes | |
size_t | pos |
wstring | text |
bool | resubstitute |
Definition at line 31 of file diversion.h.
virtual sub_diversion::~sub_diversion | ( | ) | [virtual] |
The destructor.
sub_diversion::sub_diversion | ( | ) |
The default constructor.
sub_diversion::sub_diversion | ( | const wstring & | arg1, | |
bool | arg2 = false | |||
) |
The constructor.
arg1 | The text of this diversion. | |
arg2 | Wether or not to rescan the text of this diversion for more substitutions. |
sub_diversion::sub_diversion | ( | const sub_diversion & | ) |
The copy constructor.
sub_diversion& sub_diversion::operator= | ( | const sub_diversion & | ) |
The assignment operator.
bool sub_diversion::resub_both | ( | ) | const [inline] |
Definition at line 65 of file diversion.h.
wchar_t sub_diversion::getch | ( | ) |
The getch method is used to get the next character from the diversion.
void sub_diversion::ungetch | ( | wchar_t | wc | ) |
The ungetch method is used to return a chaaracter to the diversion, fo re-reading at a later time.
size_t sub_diversion::pos [private] |
The pos instance variable is used to remember where in the "text" the read point is up to.
Definition at line 91 of file diversion.h.
wstring sub_diversion::text [private] |
The text instance variable is used to remember text of this diversion.
Definition at line 97 of file diversion.h.
bool sub_diversion::resubstitute [private] |
The resubstitute instance variable is used to remember whether or not this diversion is to be reinterpreted by the scanner.
Definition at line 103 of file diversion.h.