|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <simple_parser.hpp>
Public Member Functions | |
| SimpleParser (std::string_view input) | |
| file | parse () |
| std::size_t | dataStartPos () const |
Private Member Functions | |
| void | skipWSAndComments () |
| bool | match (std::string_view str, bool ignoreCase=false) |
| bool | match (char c) |
| void | expect (std::string_view str) |
| void | expect (char c) |
| std::string | parseQuotedString () |
| std::string | parseIdentifier () |
| std::string | parseString () |
| version | parseVersion () |
| description | parseDescription () |
| parameter | parseParameter () |
| column | parseColumn () |
| associate | parseAssociate () |
| array | parseArray () |
| include | parseInclude () |
| data | parseData () |
Private Attributes | |
| std::string_view | input_ |
| std::size_t | pos_ |
| std::size_t | dataStartPos_ |
Definition at line 42 of file simple_parser.hpp.
|
inline |
Definition at line 44 of file simple_parser.hpp.
|
inline |
Definition at line 82 of file simple_parser.hpp.
References dataStartPos_.
Referenced by SDDS::SDDSParser::run().
|
inlineprivate |
Definition at line 136 of file simple_parser.hpp.
References match().

|
inlineprivate |
Definition at line 130 of file simple_parser.hpp.
References match().
Referenced by parseColumn(), parseData(), parseDescription(), parseParameter(), and parseVersion().

|
inlineprivate |
Definition at line 121 of file simple_parser.hpp.
References input_, pos_, and skipWSAndComments().

|
inlineprivate |
Definition at line 95 of file simple_parser.hpp.
References input_, pos_, and skipWSAndComments().
Referenced by expect(), expect(), parse(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

|
inline |
Definition at line 47 of file simple_parser.hpp.
References dataStartPos_, input_, match(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), parseParameter(), parseVersion(), pos_, SDDS::file::sddsArrays_m, SDDS::file::sddsAssociates_m, SDDS::file::sddsColumns_m, SDDS::file::sddsData_m, SDDS::file::sddsDescription_m, SDDS::file::sddsIncludes_m, SDDS::file::sddsParameters_m, and SDDS::file::sddsVersion_m.
Referenced by SDDS::SDDSParser::run().

|
inlineprivate |
Definition at line 323 of file simple_parser.hpp.
References match(), and parseString().
Referenced by parse().

|
inlineprivate |
Definition at line 311 of file simple_parser.hpp.
References match(), and parseString().
Referenced by parse().

|
inlineprivate |
Definition at line 272 of file simple_parser.hpp.
References SDDS::column::checkMandatories(), SDDS::column::description_m, expect(), input_, match(), SDDS::column::name_m, SDDS::ast::parseDataType(), parseString(), pos_, SDDS::column::type_m, and SDDS::column::units_m.
Referenced by parse().

|
inlineprivate |
Definition at line 347 of file simple_parser.hpp.
References SDDS::ast::ASCII, SDDS::ast::BINARY, dataStartPos_, SDDS::ast::equalsIgnoreCase(), expect(), input_, match(), SDDS::data::mode_m, parseIdentifier(), parseString(), and pos_.
Referenced by parse().

|
inlineprivate |
Definition at line 205 of file simple_parser.hpp.
References SDDS::description::content_m, expect(), input_, match(), parseString(), pos_, and SDDS::description::text_m.
Referenced by parse().

|
inlineprivate |
Definition at line 163 of file simple_parser.hpp.
References input_, pos_, and skipWSAndComments().
Referenced by parseData(), and parseString().

|
inlineprivate |
Definition at line 335 of file simple_parser.hpp.
References match(), and parseString().
Referenced by parse().

|
inlineprivate |
Definition at line 232 of file simple_parser.hpp.
References SDDS::parameter::checkMandatories(), SDDS::parameter::description_m, expect(), input_, match(), SDDS::parameter::name_m, SDDS::ast::parseDataType(), parseString(), pos_, SDDS::parameter::type_m, and SDDS::parameter::units_m.
Referenced by parse().

|
inlineprivate |
Definition at line 142 of file simple_parser.hpp.
Referenced by parseString().
|
inlineprivate |
Definition at line 180 of file simple_parser.hpp.
References input_, parseIdentifier(), parseQuotedString(), pos_, and skipWSAndComments().
Referenced by parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

|
inlineprivate |
Definition at line 188 of file simple_parser.hpp.
References expect(), input_, SDDS::version::layoutVersion_m, pos_, and skipWSAndComments().
Referenced by parse().

|
inlineprivate |
Definition at line 91 of file simple_parser.hpp.
References input_, pos_, and SDDS::parser::skipper::skipWhitespaceAndComments().
Referenced by match(), match(), parseIdentifier(), parseString(), and parseVersion().

|
private |
Definition at line 89 of file simple_parser.hpp.
Referenced by dataStartPos(), parse(), and parseData().
|
private |
Definition at line 87 of file simple_parser.hpp.
Referenced by match(), match(), parse(), parseColumn(), parseData(), parseDescription(), parseIdentifier(), parseParameter(), parseQuotedString(), parseString(), parseVersion(), and skipWSAndComments().
|
private |
Definition at line 88 of file simple_parser.hpp.
Referenced by match(), match(), parse(), parseColumn(), parseData(), parseDescription(), parseIdentifier(), parseParameter(), parseQuotedString(), parseString(), parseVersion(), and skipWSAndComments().