MSTimeGram.h

Classes

Global Functions -- Global functions for flex/bison scanner/parser for MSTimeGram (full description)

Global functions for flex/bison scanner/parser for MSTimeGram (source)

Interface

int msTimeGramParseCommand (const MeasurementSet *ms, const String& command)
void MSTimeGramerror (char*)
const TableExprNode *msTimeGramParseNode()
Int& msTimeGramPosition()
int msTimeGramInput (char* buf, int max_size)
String msTimeGramRemoveEscapes (const String& in)
String msTimeGramRemoveQuotes (const String& in)
void msTimeGramSetTimeFields (struct TimeFields& tf, Int year, Int month, Int day, Int hour, Int minute, Int sec, Int fsec)

Description

Prerequisite

Synopsis

Global functions are needed to define the input of the flex scanner and to start the bison parser. The input is taken from a string.

Motivation

It is necessary to be able to give an image expression in ASCII. This can be used in glish.

To Do

Member Description

int msTimeGramParseCommand (const MeasurementSet *ms, const String& command)

Declare the bison parser (is implemented by bison command).

void MSTimeGramerror (char*)

The yyerror function for the parser. It throws an exception with the current token.

const TableExprNode *msTimeGramParseNode()

Give the table expression node.

Int& msTimeGramPosition()

Give the current position in the string. This can be used when parse errors occur.

int msTimeGramInput (char* buf, int max_size)

Declare the input routine for flex/bison.

String msTimeGramRemoveEscapes (const String& in)

A function to remove escaped characters.

String msTimeGramRemoveQuotes (const String& in)

A function to remove quotes from a quoted string.

void msTimeGramSetTimeFields (struct TimeFields& tf, Int year, Int month, Int day, Int hour, Int minute, Int sec, Int fsec)

A function to set the fields of the TimeFields structure