meteo-vm2  2.0.11
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
meteo::vm2::Parser Struct Reference

#include <parser.h>

Public Member Functions

 Parser (std::istream &in)
 Create a stdin parser.
 
bool next (Value &value)
 Read the next VM2 value.
 
bool next (Value &value, std::string &raw)
 Read the next VM2 value and store the raw message (w/o trailing newline)
 

Static Public Member Functions

static void serialize (std::ostream &out, const Value &value)
 Serialize a value.
 

Public Attributes

std::istream & in
 Input stream.
 
int lineno
 Number of the last line parsed.
 

Static Public Attributes

static std::string regexp_str = "^([0-9]{12}([0-9][0-9])?),([0-9]+),([0-9]+),([+-]?[0-9.]*),([+-]?[0-9.]*),([^,\n\r]*),([^,\n\r]*[\r\n]*)$"
 Pattern of a VM2 value.
 

Detailed Description

Parser for the VM2 value files

Definition at line 54 of file parser.h.


The documentation for this struct was generated from the following files: