#include <Files.hxx>
Public Member Functions | |
| ConfigStreams () | |
| Default constructor. | |
| ConfigStreams (const vector< string > &files) | |
| Main constructor. | |
| ConfigStreams (string file0) | |
| Constructor. | |
| ConfigStreams (string file0, string file1) | |
| Constructor. | |
| ConfigStreams (string file0, string file1, string file2) | |
| Constructor. | |
| ~ConfigStreams () | |
| Destructor. | |
| vector< ConfigStream * > & | GetStreams () |
| Returns the vector of streams. | |
| vector< ConfigStream * >::iterator | GetCurrent () |
| Returns the current position in the vector of streams. | |
| void | AddFile (string file) |
| Adds a file to the streams. | |
| bool | Discard (string line) const |
| Checks whether a line should be discarded. | |
| ConfigStreams & | SkipDiscarded () |
| Skips discarded lines. | |
| ConfigStreams & | SkipDelimiters () |
| Skips delimiters. | |
| string | RemoveDelimiters (const string &str) const |
| Removes delimiters at both ends of a string. | |
| ConfigStreams & | Skip () |
| Skips discarded lines and delimiters. | |
| bool | IsEmpty () |
| Checks whether the streams are empty. | |
| ConfigStreams & | Rewind () |
| Rewinds all streams and goes back to the first stream. | |
| string | GetFullLine () |
| Returns the next line. | |
| bool | GetFullLine (string &line) |
| Returns the next line. | |
| string | PeekFullLine () |
| Returns the next line without extracting it from the stream. | |
| string | PeekFullLine (streampos &position) |
| Returns the next line without extracting it from the stream. | |
| bool | PeekFullLine (string &line) |
| Returns the next line without extracting it from the stream. | |
| void | SkipFullLines (int nb) |
| Skips full lines. | |
| string | GetRawLine () |
| Returns the next valid line, without markups substitution. | |
| string | GetLine () |
| Returns the next valid line. | |
| bool | GetLine (string &line) |
| Returns the next valid line. | |
| string | PeekLine () |
| Returns the next valid line without extracting it from the stream. | |
| string | PeekLine (streampos &position) |
| Returns the next valid line without extracting it from the stream. | |
| bool | PeekLine (string &line) |
| Returns the next valid line without extracting it from the stream. | |
| void | SkipLines (int nb) |
| Skips valid lines. | |
| bool | Find (string element) |
| Sets the position of the get pointer after a given element. | |
| bool | FindFromBeginning (string element) |
| Sets the position of the get pointer after a given element. | |
| string | GetRawElement () |
| Returns the next valid element, without markups substitution. | |
| string | GetElement () |
| Returns the next valid element. | |
| template<class T> bool | GetElement (T &element) |
| Gets the next valid element. | |
| string | PeekElement () |
| Returns the next valid element without extracting it from the stream. | |
| template<class T> bool | PeekElement (T &element) |
| Gets the next valid element without extracting it from the stream. | |
| void | SkipElements (int nb) |
| Skips valid elements. | |
| double | GetNumber () |
| Returns the next valid number. | |
| template<class T> bool | GetNumber (T &number) |
| Gets the next valid number. | |
| double | PeekNumber () |
| Returns the next valid number without extracting it from the stream. | |
| template<class T> bool | PeekNumber (T &number) |
| Gets the next valid number without extracting it from the stream. | |
| void | SkipNumbers (int nb) |
| Skips numbers. | |
| string | GetValue (string name) |
| Gets the value of a given variable. | |
| string | PeekValue (string name) |
| Gets the value of a given variable without extracting from the stream. | |
| template<class T> bool | GetValue (string name, T &value) |
| Gets the value of a given variable. | |
| template<class T> bool | PeekValue (string name, T &value) |
| Gets the value of a given variable without extracting them from the stream. | |
| bool | GetValue (string name, string &value) |
| Gets the value of a given variable. | |
| bool | PeekValue (string name, string &value) |
| Gets the value of a given variable without extracting them from the stream. | |
| bool | GetValue (string name, bool &value) |
| Gets the value of a given variable. | |
| bool | PeekValue (string name, bool &value) |
| Gets the value of a given variable without extracting from the stream. | |
Protected Attributes | |
| vector< ConfigStream * > | streams_ |
|
vector< ConfigStream * >::iterator | current_ |
|
|
Default constructor. Nothing is performed. |
|
|
Main constructor. Opens a set of file.
|
|
|
Constructor. Opens a file.
|
|
||||||||||||
|
Constructor. Opens two files.
|
|
||||||||||||||||
|
Constructor. Opens three files.
|
|
|
Adds a file to the streams.
|
|
|
Checks whether a line should be discarded.
|
|
|
Sets the position of the get pointer after a given element. Sets the position of the get pointer exactly after a given element.
|
|
|
Sets the position of the get pointer after a given element. Sets the position of the get pointer exactly after a given element.
|
|
|
Returns the current position in the vector of streams.
|
|
||||||||||
|
Gets the next valid element. Gets the next valid element, i.e. the next element that is not in a line to be discarded.
|
|
|
Returns the next valid element. Returns the next valid element, i.e. the next element that is not in a line to be discarded.
|
|
|
Returns the next line.
|
|
|
Returns the next line.
|
|
|
Returns the next valid line. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted.
|
|
|
Returns the next valid line. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted.
|
|
||||||||||
|
Gets the next valid number. Gets the next valid number, i.e. the next number that is not in a line to be discarded.
|
|
|
Returns the next valid number. Returns the next valid number, i.e. the next number that is not in a line to be discarded.
|
|
|
Returns the next valid element, without markups substitution. Returns the next valid element, i.e. the next element that is not in a line to be discarded. No markup substitution is performed.
|
|
|
Returns the next valid line, without markups substitution. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted. No markup substitution is performed.
|
|
|
Returns the vector of streams.
|
|
||||||||||||
|
Gets the value of a given variable. Gets the value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name.
|
|
||||||||||||
|
Gets the value of a given variable. Gets the value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name.
|
|
||||||||||||||||
|
Gets the value of a given variable. Gets the (numerical) value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name.
|
|
|
Gets the value of a given variable. Gets the value of a given variable, i.e. the next valid (not in a discarded line) element following the variable name.
|
|
|
Checks whether the streams are empty. Checcks whether the streams have still valid elements to be read.
|
|
||||||||||
|
Gets the next valid element without extracting it from the stream. Gets the next valid element, i.e. the next element that is not in a line to be discarded.
|
|
|
Returns the next valid element without extracting it from the stream. Returns the next valid element, i.e. the next element that is not in a line to be discarded.
|
|
|
Returns the next line without extracting it from the stream.
|
|
|
Returns the next line without extracting it from the stream.
|
|
|
Returns the next line without extracting it from the stream.
|
|
|
Returns the next valid line without extracting it from the stream. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted. Nothing is extracted from the stream.
|
|
|
Returns the next valid line without extracting it from the stream. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted. Nothing is extracted from the stream.
|
|
|
Returns the next valid line without extracting it from the stream. Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted. Nothing is extracted from the stream.
|
|
||||||||||
|
Gets the next valid number without extracting it from the stream. Gets the next valid number, i.e. the next number that is not in a line to be discarded.
|
|
|
Returns the next valid number without extracting it from the stream. Returns the next valid number, i.e. the next number that is not in a line to be discarded.
|
|
||||||||||||
|
Gets the value of a given variable without extracting from the stream. Gets the value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name. Nothing is extracted from the stream.
|
|
||||||||||||
|
Gets the value of a given variable without extracting them from the stream. Gets the value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name. Nothing is extracted from the stream.
|
|
||||||||||||||||
|
Gets the value of a given variable without extracting them from the stream. Gets the (numerical) value of a given variable, i.e. the next valid (not in a discarded line) number or element following the variable name. Nothing is extracted from the stream.
|
|
|
Gets the value of a given variable without extracting from the stream. Gets the value of a given variable, i.e. the next valid (not in a discarded line) element following the variable name. Nothing is extracted from the stream.
|
|
|
Removes delimiters at both ends of a string. Removes delimiters at the beginning and at the end of a string.
|
|
|
Rewinds all streams and goes back to the first stream. Goes back to the beginning of each stream, clears the control state and goes back to the first stream.
|
|
|
Skips discarded lines and delimiters. Extracts discarded lines and delimiters.
|
|
|
Skips delimiters. Extracts following delimiters from the string, until another character is found.
|
|
|
Skips discarded lines. Extracts discarded lines.
|
|
|
Skips valid elements.
|
|
|
Skips full lines.
|
|
|
Skips valid lines.
|
|
|
Skips numbers.
|
1.3.8