|
LDMX Software
|
Specialization of the GeneralCSVLoader for loading from a string. More...
#include <GeneralCSVLoader.h>
Public Member Functions | |
| StringCSVLoader (const std::string &source, const std::string lineseparators="\n") | |
| Constructor. | |
Public Member Functions inherited from conditions::GeneralCSVLoader | |
| virtual | ~GeneralCSVLoader () |
| Destructor. | |
| std::vector< std::string > | columnNames () const |
| Get the column names. | |
| bool | nextRow () |
| Advance to next row if possible. | |
| const std::string & | get (const std::string &colname, bool ignore_case=true) const |
| Get the value for the given column in the current row. | |
| int | getInteger (const std::string &colname, bool ignore_case=true) const |
| Get the value for the given column in the current row as an integer. | |
Protected Member Functions | |
| virtual std::string | getNextLine () |
| Get the next line, returning an empty string when there is no further data. | |
Protected Member Functions inherited from conditions::GeneralCSVLoader | |
Private Attributes | |
| const std::string & | source_ |
| The original string. | |
| const std::string | linesep_ |
| The separators. | |
| std::string::size_type | row_begin_ |
| The current start and end pointers. | |
| std::string::size_type | row_end_ |
Specialization of the GeneralCSVLoader for loading from a string.
Definition at line 57 of file GeneralCSVLoader.h.
| conditions::StringCSVLoader::StringCSVLoader | ( | const std::string & | source, |
| const std::string | lineseparators = "\n" ) |
Constructor.
Definition at line 68 of file GeneralCSVLoader.cxx.
References getNextLine().
|
protectedvirtual |
Get the next line, returning an empty string when there is no further data.
Implements conditions::GeneralCSVLoader.
Definition at line 74 of file GeneralCSVLoader.cxx.
References linesep_, row_begin_, and source_.
Referenced by StringCSVLoader().
|
private |
|
private |
The current start and end pointers.
Definition at line 80 of file GeneralCSVLoader.h.
Referenced by getNextLine().
|
private |
Definition at line 80 of file GeneralCSVLoader.h.
|
private |