|
suplibxx
1.3.14
|
Enumerations | |
| enum | suplib::readopt { suplib::READ_PHYS = 0x00, suplib::READ_LOGICAL = 0x01, suplib::STRIP = 0x02, suplib::CLEAN = 0x04, suplib::RAW = 0x08 } |
| Control options for getrecord. More... | |
Functions | |
| std::istream & | suplib::getrecord (std::istream &is, std::string &str, int opt=READ_PHYS, char delim='\n', char continuation='\\') |
| Reads physical and logical lines. More... | |
| enum suplib::readopt |
Control options for getrecord.
| std::istream & suplib::getrecord | ( | std::istream & | is, |
| std::string & | str, | ||
| int | opt = READ_PHYS, |
||
| char | delim = '\n', |
||
| char | continuation = '\\' |
||
| ) |
Reads physical and logical lines.
| is | the istream from which to read. |
| str | the string into which to read. |
| opt | the control options. |
| delim | the character which indicates the end of a physical line. |
| continuation | the character directly proceeding the delim which indicates a logical record continues on the following physical line. |
getrecord reads a line from the specified istream. It always reads a complete line, enlarging the string as necessary. The opt argument specifies a set of control flag, which are created by logically OR'ing suplib::readopt values.
Definition at line 53 of file getrecord.cc.