OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
SDDS::parser::SimpleParser Class Reference

#include <simple_parser.hpp>

Collaboration diagram for SDDS::parser::SimpleParser:
Collaboration graph

Public Member Functions

 SimpleParser (const std::string &input)
 
file parse ()
 

Private Member Functions

void skipWhitespace ()
 
bool match (const std::string &str)
 
bool match (char c)
 
void expect (const std::string &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 input_
 
size_t pos_
 

Detailed Description

Definition at line 29 of file simple_parser.hpp.

Constructor & Destructor Documentation

◆ SimpleParser()

SDDS::parser::SimpleParser::SimpleParser ( const std::string &  input)
inline

Definition at line 31 of file simple_parser.hpp.

Member Function Documentation

◆ expect() [1/2]

void SDDS::parser::SimpleParser::expect ( char  c)
inlineprivate

Definition at line 115 of file simple_parser.hpp.

References match().

Here is the call graph for this function:

◆ expect() [2/2]

void SDDS::parser::SimpleParser::expect ( const std::string &  str)
inlineprivate

Definition at line 109 of file simple_parser.hpp.

References match().

Referenced by parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), parseParameter(), and parseVersion().

Here is the call graph for this function:

◆ match() [1/2]

bool SDDS::parser::SimpleParser::match ( char  c)
inlineprivate

Definition at line 100 of file simple_parser.hpp.

References input_, pos_, and skipWhitespace().

Here is the call graph for this function:

◆ match() [2/2]

bool SDDS::parser::SimpleParser::match ( const std::string &  str)
inlineprivate

Definition at line 91 of file simple_parser.hpp.

References input_, pos_, and skipWhitespace().

Referenced by expect(), expect(), parse(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

Here is the call graph for this function:

◆ parse()

◆ parseArray()

array SDDS::parser::SimpleParser::parseArray ( )
inlineprivate

Definition at line 320 of file simple_parser.hpp.

References expect(), input_, match(), parseString(), pos_, and skipWhitespace().

Referenced by parse().

Here is the call graph for this function:

◆ parseAssociate()

associate SDDS::parser::SimpleParser::parseAssociate ( )
inlineprivate

Definition at line 306 of file simple_parser.hpp.

References expect(), input_, match(), parseString(), pos_, and skipWhitespace().

Referenced by parse().

Here is the call graph for this function:

◆ parseColumn()

column SDDS::parser::SimpleParser::parseColumn ( )
inlineprivate

◆ parseData()

data SDDS::parser::SimpleParser::parseData ( )
inlineprivate

Definition at line 348 of file simple_parser.hpp.

References SDDS::ast::ASCII, SDDS::ast::BINARY, expect(), match(), SDDS::data::mode_m, parseString(), and skipWhitespace().

Referenced by parse().

Here is the call graph for this function:

◆ parseDescription()

description SDDS::parser::SimpleParser::parseDescription ( )
inlineprivate

Definition at line 184 of file simple_parser.hpp.

References SDDS::description::content_m, expect(), input_, match(), parseString(), pos_, skipWhitespace(), and SDDS::description::text_m.

Referenced by parse().

Here is the call graph for this function:

◆ parseIdentifier()

std::string SDDS::parser::SimpleParser::parseIdentifier ( )
inlineprivate

Definition at line 142 of file simple_parser.hpp.

References input_, pos_, and skipWhitespace().

Referenced by parseString().

Here is the call graph for this function:

◆ parseInclude()

include SDDS::parser::SimpleParser::parseInclude ( )
inlineprivate

Definition at line 334 of file simple_parser.hpp.

References expect(), input_, match(), parseString(), pos_, and skipWhitespace().

Referenced by parse().

Here is the call graph for this function:

◆ parseParameter()

parameter SDDS::parser::SimpleParser::parseParameter ( )
inlineprivate

◆ parseQuotedString()

std::string SDDS::parser::SimpleParser::parseQuotedString ( )
inlineprivate

Definition at line 121 of file simple_parser.hpp.

References input_, and pos_.

Referenced by parseString().

◆ parseString()

std::string SDDS::parser::SimpleParser::parseString ( )
inlineprivate

Definition at line 159 of file simple_parser.hpp.

References input_, parseIdentifier(), parseQuotedString(), pos_, and skipWhitespace().

Referenced by parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

Here is the call graph for this function:

◆ parseVersion()

version SDDS::parser::SimpleParser::parseVersion ( )
inlineprivate

Definition at line 167 of file simple_parser.hpp.

References expect(), input_, SDDS::version::layoutVersion_m, pos_, and skipWhitespace().

Referenced by parse().

Here is the call graph for this function:

◆ skipWhitespace()

void SDDS::parser::SimpleParser::skipWhitespace ( )
inlineprivate

Member Data Documentation

◆ input_

◆ pos_


The documentation for this class was generated from the following file: