28 #ifndef TABLES_RECORDGRAM_H 29 #define TABLES_RECORDGRAM_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/BasicSL/String.h> 34 #include <casacore/tables/TaQL/TableGram.h> 35 #include <casacore/tables/TaQL/TaQLStyle.h> 36 #include <casacore/tables/Tables/Table.h> 37 #include <casacore/casa/OS/Mutex.h> 44 class TableExprNodeSet;
45 class TableExprNodeSetElem;
46 class RecordInterface;
82 int recordGramParseCommand (
const String& command);
86 void RecordGramerror (
const char*);
90 Int& recordGramPosition();
93 int recordGramInput (
char* buf,
int max_size);
97 {
return tableGramRemoveEscapes (in); }
101 {
return tableGramRemoveQuotes (in); }
188 const String& expression);
195 const String& expression);
213 { theirNodePtr = nodePtr; }
231 static void deleteTokenStorage();
239 { theirTokens[ptr] =
type; }
242 { theirTokens.erase (ptr); }
static const RecordInterface * theirRecPtr
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
static TableExprNode * theirNodePtr
Main interface class to a read/write table.
static void addToken(void *ptr, Token type)
Add a token to the list of tokens to be deleted.
Class to hold multiple table expression nodes.
Handle class for a table column expression tree.
String recordGramRemoveQuotes(const String &in)
A function to remove quotes from a quoted string.
Helper class for values in RecordGram.
static const Table * theirTabPtr
static void removeToken(void *ptr)
Remove a token from the list of tokens to be deleted.
static std::map< void *, Token > theirTokens
Class to hold the table expression nodes for an element in a set.
Class with static members defining the TaQL style.
bool Bool
Define the standard types used by Casacore.
static void setNodePtr(TableExprNode *nodePtr)
Set the final node pointer.
Select-class for flex/bison scanner/parser for RecordGram.
String recordGramRemoveEscapes(const String &in)
A function to remove escaped characters.
Wrapper around a pthreads mutex.
Token
Define the types of tokens in the grammar.
TableExprNode regex(const TableExprNode &node)
Functions for regular expression matching and pattern matching.
String: the storage and methods of handling collections of characters.
Abstract base class for Record classes.
static TaQLStyle theirTaQLStyle
Define the global TaQLStyle to use.
this file contains all the compiler specific defines