casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::RecordGram_global_functions_RecordGramFunctions Struct Reference

Global functions for flex/bison scanner/parser for RecordGram. More...

#include <RecordGram.h>

Public Member Functions

int recordGramParseCommand (const String &command)
 Declare the bison parser (is implemented by bison command). More...
 
void RecordGramerror (const char *)
 The yyerror function for the parser. More...
 
IntrecordGramPosition ()
 Give the current position in the string. More...
 
int recordGramInput (char *buf, int max_size)
 Declare the input routine for flex/bison. More...
 
String recordGramRemoveEscapes (const String &in)
 A function to remove escaped characters. More...
 
String recordGramRemoveQuotes (const String &in)
 A function to remove quotes from a quoted string. More...
 

Detailed Description

Global functions for flex/bison scanner/parser for RecordGram.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

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 a record select command in ASCII. This can be used in a CLI or in the record browser to get a subset of a record or to sort a record.

Definition at line 81 of file RecordGram.h.

Member Function Documentation

void casacore::RecordGram_global_functions_RecordGramFunctions::RecordGramerror ( const char *  )

The yyerror function for the parser.

It throws an exception with the current token.

int casacore::RecordGram_global_functions_RecordGramFunctions::recordGramInput ( char *  buf,
int  max_size 
)

Declare the input routine for flex/bison.

int casacore::RecordGram_global_functions_RecordGramFunctions::recordGramParseCommand ( const String command)

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

Int& casacore::RecordGram_global_functions_RecordGramFunctions::recordGramPosition ( )

Give the current position in the string.

This can be used when parse errors occur.

String casacore::RecordGram_global_functions_RecordGramFunctions::recordGramRemoveEscapes ( const String in)
inline

A function to remove escaped characters.

Definition at line 97 of file RecordGram.h.

String casacore::RecordGram_global_functions_RecordGramFunctions::recordGramRemoveQuotes ( const String in)
inline

A function to remove quotes from a quoted string.

Definition at line 101 of file RecordGram.h.


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