VoiceMan
|
Splits string object to the set of lines. More...
Public Member Functions | |
TStr | chain () const |
Returns accessible part of incomplete line. | |
bool | next (TStr &line) |
Reads next line from string object. | |
TextQueue () | |
The default constructor. | |
TextQueue (const TStr &initialValue) | |
The constructor with initial string specification. |
This class gets set of lines (possibly incomplete) saved in one string object and splits it the separate strings until it is possible. This process can be easily continued later when complete data is received. This class is very useful to read strings from pipe.
[in] | initialValue | The string to split onto lines |
TStr TextQueue< TStr >::chain | ( | ) | const [inline] |
Use this method to get accessible part of of incomplete line.
bool TextQueue< TStr >::next | ( | TStr & | line | ) | [inline] |
This method checks if new line is accessible to read from string object. If it is accessible it returns next line.
[out] | line | The next line from string |