OpenStructure
|
#include <star_parser.hh>
Inherited by ChemdictParser, and ChemdictParser.
Public Member Functions | |
StarParser (std::istream &istream) | |
virtual | ~StarParser () |
virtual bool | OnBeginLoop (const StarLoopDesc &header) |
virtual void | OnEndLoop () |
virtual void | OnDataRow (const StarLoopDesc &header, const std::vector< StringRef > &columns) |
virtual void | OnDataItem (const StarDataItem &item) |
virtual bool | OnBeginData (const StringRef &data_name) |
virtual void | OnEndData () |
void | Parse () |
StarParser (std::istream &istream) | |
virtual | ~StarParser () |
virtual bool | OnBeginLoop (const StarLoopDesc &header) |
virtual void | OnEndLoop () |
virtual void | OnDataRow (const StarLoopDesc &header, const std::vector< StringRef > &columns) |
virtual void | OnDataItem (const StarDataItem &item) |
virtual bool | OnBeginData (const StringRef &data_name) |
virtual void | OnEndData () |
void | Parse () |
Static Public Member Functions | |
static bool | SplitLine (const StringRef &line, std::vector< StringRef > &parts, bool clear=true) |
static bool | SplitLine (const StringRef &line, std::vector< StringRef > &parts, bool clear=true) |
parser for the STAR file format
In essence, STAR files are structured text files. A few simple control structures control the interpretation of the content.
Definition at line 96 of file star_parser.hh.
StarParser | ( | std::istream & | istream | ) |
|
inlinevirtual |
Definition at line 100 of file star_parser.hh.
StarParser | ( | std::istream & | istream | ) |
|
inlinevirtual |
Definition at line 100 of file star_parser.hh.
|
inlinevirtual |
invoked when a new data control structure is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 125 of file star_parser.hh.
|
inlinevirtual |
invoked when a new data control structure is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 125 of file star_parser.hh.
|
inlinevirtual |
called when a loop is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 107 of file star_parser.hh.
|
inlinevirtual |
called when a loop is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 107 of file star_parser.hh.
|
inlinevirtual |
invoked when a data item is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 120 of file star_parser.hh.
|
inlinevirtual |
invoked when a data item is encountered
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 120 of file star_parser.hh.
|
inlinevirtual |
invoked when a data row in a loop is encountered.
header | describes the row format |
columns | contains the data columns |
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 115 of file star_parser.hh.
|
inlinevirtual |
invoked when a data row in a loop is encountered.
header | describes the row format |
columns | contains the data columns |
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 115 of file star_parser.hh.
|
inlinevirtual |
called when leaving a datasection. Will only be invoked when OnBeginData() returned true.
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 129 of file star_parser.hh.
|
inlinevirtual |
called when leaving a datasection. Will only be invoked when OnBeginData() returned true.
Reimplemented in ChemdictParser, and ChemdictParser.
Definition at line 129 of file star_parser.hh.
|
inlinevirtual |
invoked when leaving a loop
OnEndLoop() is only invoked, when OnBeginLoop() returned true.
Definition at line 111 of file star_parser.hh.
|
inlinevirtual |
invoked when leaving a loop
OnEndLoop() is only invoked, when OnBeginLoop() returned true.
Definition at line 111 of file star_parser.hh.
void Parse | ( | ) |
void Parse | ( | ) |
|
static |
|
static |