libvata2  [unstable] git snapshot
Classes | Typedefs | Functions
Vata2::Parser Namespace Reference

Classes

struct  ParsedSection
 Parsed data (single section) More...
 

Typedefs

using KeyListStore = std::map< std::string, std::vector< std::string >>
 
using BodyLine = std::vector< std::string >
 
using Parsed = std::vector< ParsedSection >
 Parsed data. More...
 

Functions

Parsed parse_vtf (const std::string &input)
 Parses a string into an intermediary structure. More...
 
Parsed parse_vtf (std::istream &input)
 Parses a stream into an intermediary structure. More...
 
ParsedSection parse_vtf_section (std::istream &input)
 Parses one section from a stream into an intermediary structure. More...
 
ParsedSection parse_vtf_section (const std::string &input)
 Parses one section from a string into an intermediary structure. More...
 
void init ()
 registers dispatcher More...
 

Typedef Documentation

using BodyLine = std::vector<std::string>

Definition at line 38 of file parser.hh.

using KeyListStore = std::map<std::string, std::vector<std::string>>

Definition at line 37 of file parser.hh.

using Parsed = std::vector<ParsedSection>

Parsed data.

Definition at line 97 of file parser.hh.

Function Documentation

void Vata2::Parser::init ( )

registers dispatcher

Parsed Vata2::Parser::parse_vtf ( const std::string &  input)

Parses a string into an intermediary structure.

Parsed Vata2::Parser::parse_vtf ( std::istream &  input)

Parses a stream into an intermediary structure.

ParsedSection Vata2::Parser::parse_vtf_section ( std::istream &  input)

Parses one section from a stream into an intermediary structure.

ParsedSection Vata2::Parser::parse_vtf_section ( const std::string &  input)

Parses one section from a string into an intermediary structure.