class ParseLine Parse lines from a command file.
Class ParseLine reads a file and splits up each line into words delimited by one or more blank space characters or by quotes. Lines may be continued in the file using a backslash resulting in up to 1024 character command lines. Words from the command line can be accessed using the getArg() or operator[] methods. The words may also be converted to numeric values with getDouble(), getHex() or getInt().A line parser is typically used in the following manner:
ParseLine pl("command.file"); while (pl.getLine() >= 0) { std::string arg1 = pl[0]; unsigned int hex_arg = pl.getHex(1); ... }
~ParseLine(void)
int getLine(void)
const char* getArg(int i) const
int getCount(void) const
double getDouble(int i) const
unsigned long getHex(int i) const
long getInt(int i) const
bool isOpen(void) const
const char* operator[](int i) const
void setLog(std::ostream& log)
alphabetic index hierarchy of classes
generated by doc++