BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Interface for all classes capable of parsing ASCII data into multicolumn presentation. More...
Public Member Functions | |
virtual | ~ParserInterface ()=default |
virtual std::string | getLine (size_t index) const =0 |
Returns original line. More... | |
virtual std::vector< std::vector< std::string > > | parsedData () const =0 |
Returns 2D vector representing parsed text. Skipped lines are not present. More... | |
virtual std::vector< std::string > | parseResults (size_t index) const =0 |
Returns parsed text for given line index. More... | |
virtual void | process (const std::vector< std::string > &raw_data)=0 |
Parse data representing content of ASCII file. More... | |
virtual size_t | totalLineCount () const =0 |
Returns total number of lines in raw data. More... | |
Interface for all classes capable of parsing ASCII data into multicolumn presentation.
Definition at line 26 of file parserinterface.h.
|
virtualdefault |
|
pure virtual |
Returns original line.
Implemented in gui2::DefaultParser.
Referenced by gui2::LoaderPreviewPanel::showData().
|
pure virtual |
Returns 2D vector representing parsed text. Skipped lines are not present.
Implemented in gui2::DefaultParser.
Referenced by gui2::LoaderPreviewPanel::showData().
|
pure virtual |
Returns parsed text for given line index.
If line was skipped during parsing, returns empty vector.
Implemented in gui2::DefaultParser.
Referenced by gui2::LoaderPreviewPanel::showData().
|
pure virtual |
Parse data representing content of ASCII file.
Implemented in gui2::DefaultParser.
|
pure virtual |
Returns total number of lines in raw data.
Implemented in gui2::DefaultParser.
Referenced by gui2::LoaderPreviewPanel::showData().