34 #ifndef CARTOBASE_OBJECT_SREADER_H
35 #define CARTOBASE_OBJECT_SREADER_H
41 #ifndef CARTOBASE_STREAMS_CUIFSTREAM_H
44 #ifndef CARTOBASE_OBJECT_SYNTAX_H
127 std::string nextToken();
131 void read(
Syntax& syntax);
141 std::string _filename;
Read a SyntaxSet from a file.
void read(SyntaxSet &rules)
read the referenced attributes from a stream
std::string readUntil(const std::string &s)
read characters not in s
void skipWhile(const std::string &s)
skip characters in s
SyntaxReader(const std::string &filename)
Filtering ifstream - counts lines and skips comments.
std::map< std::string, Syntax > SyntaxSet
This lookup table associates a syntactic attribute with its syntax.
SemanticSet Syntax
Specify syntax for syntactic attributes.
CARTOBASE_API carto::SyntaxReader & operator>>(carto::SyntaxReader &reader, carto::SyntaxSet &rules)