casacore
|
Global functions for flex/bison scanner/parser for TableGram. More...
#include <TableGram.h>
Public Member Functions | |
int | tableGramParseCommand (const String &command) |
Declare the bison parser (is implemented by bison command). More... | |
void | TableGramerror (const char *) |
The yyerror function for the parser. More... | |
Int & | tableGramPosition () |
Give the current position in the string. More... | |
int | tableGramInput (char *buf, int max_size) |
Declare the input routine for flex/bison. More... | |
String | tableGramRemoveEscapes (const String &in) |
A function to remove escape characters. More... | |
String | tableGramRemoveEscapesQuotes (const String &in) |
A function to remove escape characters and quotes. More... | |
String | tableGramRemoveQuotes (const String &in) |
A function to remove quotes from a quoted string. More... | |
MVTime | tableGramParseDateTime (const String &in) |
A function to parse a date/time string. More... | |
Double | tableGramParseTime (const String &in) |
A function to parse a time/position string. More... | |
Global functions for flex/bison scanner/parser for TableGram.
Internal
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.
It is necessary to be able to give a table select command in ASCII. This can be used in a CLI or in the table browser to get a subset of a table or to sort a table.
Definition at line 72 of file TableGram.h.
void casacore::TableGram_global_functions_TableGramFunctions::TableGramerror | ( | const char * | ) |
The yyerror function for the parser.
It throws an exception with the current token.
int casacore::TableGram_global_functions_TableGramFunctions::tableGramInput | ( | char * | buf, |
int | max_size | ||
) |
Declare the input routine for flex/bison.
int casacore::TableGram_global_functions_TableGramFunctions::tableGramParseCommand | ( | const String & | command | ) |
Declare the bison parser (is implemented by bison command).
MVTime casacore::TableGram_global_functions_TableGramFunctions::tableGramParseDateTime | ( | const String & | in | ) |
A function to parse a date/time string.
Double casacore::TableGram_global_functions_TableGramFunctions::tableGramParseTime | ( | const String & | in | ) |
A function to parse a time/position string.
The value is returned in radians.
Int& casacore::TableGram_global_functions_TableGramFunctions::tableGramPosition | ( | ) |
Give the current position in the string.
This can be used when parse errors occur.
String casacore::TableGram_global_functions_TableGramFunctions::tableGramRemoveEscapes | ( | const String & | in | ) |
A function to remove escape characters.
String casacore::TableGram_global_functions_TableGramFunctions::tableGramRemoveEscapesQuotes | ( | const String & | in | ) |
A function to remove escape characters and quotes.
String casacore::TableGram_global_functions_TableGramFunctions::tableGramRemoveQuotes | ( | const String & | in | ) |
A function to remove quotes from a quoted string.