commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::CmrParser Class Reference

#include <Parser.h>

+ Inheritance diagram for commore::CmrParser:

Classes

class  Reader
 

Public Types

enum  WORD_TYPE {
  EMPTY, OPER, IDENT, STRING,
  QSTRING, NUMBER
}
 
- Public Types inherited from commore::Tuple
typedef Value * PValue
 

Public Member Functions

 CmrParser (IBStream &isource)
 
 CmrParser (const Path &file)
 
 CmrParser (const AString &s)
 
 ~CmrParser ()
 
bool is_open ()
 
const AString & get_source_name ()
 
WORD_TYPE read_next ()
 
AString & get_word ()
 
WORD_TYPE get_type ()
 
bool is_eof ()
 
bool is_oper ()
 
bool is_oper (const char *s)
 
bool is_oper_read (const char *s)
 
bool is_ident ()
 
bool is_ident (const char *s)
 
bool is_identu (const char *s)
 
bool is_ident_read (const char *s)
 
bool is_identu_read (const char *s)
 
bool is_ident_read (AString &s)
 
bool is_string ()
 
bool is_string_read (AString &s)
 
bool is_qstring ()
 
bool is_qstring_read (AString &s)
 
bool is_number ()
 
bool is_number (int &v)
 
bool is_number_read (int &v)
 
bool is_number_read (AString &v)
 
int get_number ()
 
bool get_string_mode () const
 
void set_string_mode (bool basic=true)
 
const StringBuffer & get_layout () const
 
const ListAString & get_comment () const
 
AString get_expected () const
 
int get_line () const
 
- Public Member Functions inherited from commore::Tuple
 Tuple ()
 
 Tuple (const AChar *class_name)
 
 Tuple (const Symbol &class_name)
 
 Tuple (const Tuple &tuple)
 
Tuple & operator= (const Tuple &tuple)
 
 operator bool ()
 
 ~Tuple ()
 
Tuple & assign (const Tuple &tuple)
 
Tuple & merge (const Tuple &tuple)
 
Tuple & merge_only (const Tuple &tuple, const ListSymbol &atts)
 
Tuple & merge_except (const Tuple &tuple, const ListSymbol &atts)
 
Tuple & splice (Tuple &tuple)
 
Tuple & diff (const Tuple &t1, const Tuple &t2)
 
void clear ()
 
bool is_a (Symbol class_name) const
 
AString & set_astring (const Symbol &att, const AChar *v)
 
AString & add_astring (const Symbol &att, const AChar *v=0)
 
String & set_string (const Symbol &att, const Char *v)
 
String & add_string (const Symbol &att, const Char *v=0)
 
StringBuffer & set_stringbuffer (const Symbol &att, const AChar *v)
 
StringBuffer & add_stringbuffer (const Symbol &att, const AChar *v)
 
bool is_set (const Symbol &att) const
 
bool is_set (const Symbol &att, Types type) const
 
bool is_null (const Symbol &att) const
 
void set_null (const Symbol &att)
 
void clear (const Symbol &att)
 
void clear (const ListSymbol &att)
 
void keep (const ListSymbol &att)
 
void clear_list (const Symbol &att)
 
bool is_empty () const
 
AString & to_string (AString &s) const
 
AString & to_string (const AString &s=AString()) const
 
long from_string (const AString &s)
 
const Symbol & get_class_name () const
 
void set_class_name (const Symbol &className)
 
void get_attributes (ListAString &l) const
 
long read (const CommBuffer &buf)
 
long write (CommBuffer &buf) const
 
long read_xml (IBStream &i)
 
long read_xml (XmlParser &i)
 
long write_xml (OBStream &o, const AChar *att=0) const
 
long write_xml (const Path &file_name) const
 
long read_xml (const Path &file_name)
 
long write_xml (StringBuffer &s) const
 
long read_xml (const StringBuffer &s)
 
AString & format (const AChar *format, AString &s) const
 
long format (const AChar *format, OBStream &o) const
 
bool equal (const Tuple &tuple) const
 
int compare (const Tuple &t) const
 
const Symbol & get_symbol (const Symbol &att) const
 
const Symbol * get_psymbol (const Symbol &att) const
 
Symbol & set_symbol (const Symbol &att)
 
Symbol & set_symbol (const Symbol &att, const Symbol &v)
 
Symbol & set_ref_symbol (const Symbol &att, Symbol &v)
 
const Symbol & set_cref_symbol (const Symbol &att, const Symbol &v)
 
const ListSymbol & get_list_symbol (const Symbol &att) const
 
const ListSymbol * get_plist_symbol (const Symbol &att) const
 
ListSymbol & set_list_symbol (const Symbol &att)
 
ListSymbol & set_list_symbol (const Symbol &att, const ListSymbol &v)
 
ListSymbol & set_ref_list_symbol (const Symbol &att, ListSymbol &v)
 
const ListSymbol & set_cref_list_symbol (const Symbol &att, const ListSymbol &v)
 
Symbol & add_symbol (const Symbol &att, const Symbol &v=Symbol())
 
Int get_int (const Symbol &att, Int pv=0) const
 
const Int * get_pint (const Symbol &att) const
 
Int & set_int (const Symbol &att)
 
Int & set_int (const Symbol &att, Int v)
 
Int & set_ref_int (const Symbol &att, Int &v)
 
const Int & set_cref_int (const Symbol &att, const Int &v)
 
const ListInt & get_list_int (const Symbol &att) const
 
const ListInt * get_plist_int (const Symbol &att) const
 
ListInt & set_list_int (const Symbol &att)
 
ListInt & set_list_int (const Symbol &att, const ListInt &v)
 
ListInt & set_ref_list_int (const Symbol &att, ListInt &v)
 
const ListInt & set_cref_list_int (const Symbol &att, const ListInt &v)
 
void add_int (const Symbol &att, Int v)
 
Bool get_bool (const Symbol &att, Bool pv=0) const
 
const Bool * get_pbool (const Symbol &att) const
 
Bool & set_bool (const Symbol &att)
 
Bool & set_bool (const Symbol &att, Bool v)
 
Bool & set_ref_bool (const Symbol &att, Bool &v)
 
const Bool & set_cref_bool (const Symbol &att, const Bool &v)
 
const ListBool & get_list_bool (const Symbol &att) const
 
const ListBool * get_plist_bool (const Symbol &att) const
 
ListBool & set_list_bool (const Symbol &att)
 
ListBool & set_list_bool (const Symbol &att, const ListBool &v)
 
ListBool & set_ref_list_bool (const Symbol &att, ListBool &v)
 
const ListBool & set_cref_list_bool (const Symbol &att, const ListBool &v)
 
void add_bool (const Symbol &att, Bool v)
 
Long get_long (const Symbol &att, Long pv=0) const
 
const Long * get_plong (const Symbol &att) const
 
Long & set_long (const Symbol &att)
 
Long & set_long (const Symbol &att, Long v)
 
Long & set_ref_long (const Symbol &att, Long &v)
 
const Long & set_cref_long (const Symbol &att, const Long &v)
 
const ListLong & get_list_long (const Symbol &att) const
 
const ListLong * get_plist_long (const Symbol &att) const
 
ListLong & set_list_long (const Symbol &att)
 
ListLong & set_list_long (const Symbol &att, const ListLong &v)
 
ListLong & set_ref_list_long (const Symbol &att, ListLong &v)
 
const ListLong & set_cref_list_long (const Symbol &att, const ListLong &v)
 
void add_long (const Symbol &att, Long v)
 
Float get_float (const Symbol &att, Float pv=0) const
 
const Float * get_pfloat (const Symbol &att) const
 
Float & set_float (const Symbol &att)
 
Float & set_float (const Symbol &att, Float v)
 
Float & set_ref_float (const Symbol &att, Float &v)
 
const Float & set_cref_float (const Symbol &att, const Float &v)
 
const ListFloat & get_list_float (const Symbol &att) const
 
const ListFloat * get_plist_float (const Symbol &att) const
 
ListFloat & set_list_float (const Symbol &att)
 
ListFloat & set_list_float (const Symbol &att, const ListFloat &v)
 
ListFloat & set_ref_list_float (const Symbol &att, ListFloat &v)
 
const ListFloat & set_cref_list_float (const Symbol &att, const ListFloat &v)
 
void add_float (const Symbol &att, Float v)
 
Double get_double (const Symbol &att, Double pv=0) const
 
const Double * get_pdouble (const Symbol &att) const
 
Double & set_double (const Symbol &att)
 
Double & set_double (const Symbol &att, Double v)
 
Double & set_ref_double (const Symbol &att, Double &v)
 
const Double & set_cref_double (const Symbol &att, const Double &v)
 
const ListDouble & get_list_double (const Symbol &att) const
 
const ListDouble * get_plist_double (const Symbol &att) const
 
ListDouble & set_list_double (const Symbol &att)
 
ListDouble & set_list_double (const Symbol &att, const ListDouble &v)
 
ListDouble & set_ref_list_double (const Symbol &att, ListDouble &v)
 
const ListDouble & set_cref_list_double (const Symbol &att, const ListDouble &v)
 
void add_double (const Symbol &att, Double v)
 
TimeDate get_time_date (const Symbol &att, TimeDate pv=0) const
 
const TimeDate * get_ptime_date (const Symbol &att) const
 
TimeDate & set_time_date (const Symbol &att)
 
TimeDate & set_time_date (const Symbol &att, TimeDate v)
 
TimeDate & set_ref_time_date (const Symbol &att, TimeDate &v)
 
const TimeDate & set_cref_time_date (const Symbol &att, const TimeDate &v)
 
const ListTimeDate & get_list_time_date (const Symbol &att) const
 
const ListTimeDate * get_plist_time_date (const Symbol &att) const
 
ListTimeDate & set_list_time_date (const Symbol &att)
 
ListTimeDate & set_list_time_date (const Symbol &att, const ListTimeDate &v)
 
ListTimeDate & set_ref_list_time_date (const Symbol &att, ListTimeDate &v)
 
const ListTimeDate & set_cref_list_time_date (const Symbol &att, const ListTimeDate &v)
 
void add_time_date (const Symbol &att, TimeDate v)
 
TimePeriod get_time_period (const Symbol &att, TimePeriod pv=0) const
 
const TimePeriod * get_ptime_period (const Symbol &att) const
 
TimePeriod & set_time_period (const Symbol &att)
 
TimePeriod & set_time_period (const Symbol &att, TimePeriod v)
 
TimePeriod & set_ref_time_period (const Symbol &att, TimePeriod &v)
 
const TimePeriod & set_cref_time_period (const Symbol &att, const TimePeriod &v)
 
const ListTimePeriod & get_list_time_period (const Symbol &att) const
 
const ListTimePeriod * get_plist_time_period (const Symbol &att) const
 
ListTimePeriod & set_list_time_period (const Symbol &att)
 
ListTimePeriod & set_list_time_period (const Symbol &att, const ListTimePeriod &v)
 
ListTimePeriod & set_ref_list_time_period (const Symbol &att, ListTimePeriod &v)
 
const ListTimePeriod & set_cref_list_time_period (const Symbol &att, const ListTimePeriod &v)
 
void add_time_period (const Symbol &att, TimePeriod v)
 
const AString & get_astring (const Symbol &att) const
 
const AString * get_pastring (const Symbol &att) const
 
AString & set_astring (const Symbol &att)
 
AString & set_astring (const Symbol &att, const AString &v)
 
AString & set_ref_astring (const Symbol &att, AString &v)
 
const AString & set_cref_astring (const Symbol &att, const AString &v)
 
const ListAString & get_list_astring (const Symbol &att) const
 
const ListAString * get_plist_astring (const Symbol &att) const
 
ListAString & set_list_astring (const Symbol &att)
 
ListAString & set_list_astring (const Symbol &att, const ListAString &v)
 
ListAString & set_ref_list_astring (const Symbol &att, ListAString &v)
 
const ListAString & set_cref_list_astring (const Symbol &att, const ListAString &v)
 
AString & add_astring (const Symbol &att, const AString &v=AString())
 
const String & get_string (const Symbol &att) const
 
const String * get_pstring (const Symbol &att) const
 
String & set_string (const Symbol &att)
 
String & set_string (const Symbol &att, const String &v)
 
String & set_ref_string (const Symbol &att, String &v)
 
const String & set_cref_string (const Symbol &att, const String &v)
 
const ListString & get_list_string (const Symbol &att) const
 
const ListString * get_plist_string (const Symbol &att) const
 
ListString & set_list_string (const Symbol &att)
 
ListString & set_list_string (const Symbol &att, const ListString &v)
 
ListString & set_ref_list_string (const Symbol &att, ListString &v)
 
const ListString & set_cref_list_string (const Symbol &att, const ListString &v)
 
String & add_string (const Symbol &att, const String &v=String())
 
const StringBuffer & get_stringbuffer (const Symbol &att) const
 
const StringBuffer * get_pstringbuffer (const Symbol &att) const
 
StringBuffer & set_stringbuffer (const Symbol &att)
 
StringBuffer & set_stringbuffer (const Symbol &att, const StringBuffer &v)
 
StringBuffer & set_ref_stringbuffer (const Symbol &att, StringBuffer &v)
 
const StringBuffer & set_cref_stringbuffer (const Symbol &att, const StringBuffer &v)
 
const ListStringBuffer & get_list_stringbuffer (const Symbol &att) const
 
const ListStringBuffer * get_plist_stringbuffer (const Symbol &att) const
 
ListStringBuffer & set_list_stringbuffer (const Symbol &att)
 
ListStringBuffer & set_list_stringbuffer (const Symbol &att, const ListStringBuffer &v)
 
ListStringBuffer & set_ref_list_stringbuffer (const Symbol &att, ListStringBuffer &v)
 
const ListStringBuffer & set_cref_list_stringbuffer (const Symbol &att, const ListStringBuffer &v)
 
StringBuffer & add_stringbuffer (const Symbol &att, const StringBuffer &v=StringBuffer())
 
const Blob & get_blob (const Symbol &att) const
 
const Blob * get_pblob (const Symbol &att) const
 
Blob & set_blob (const Symbol &att)
 
Blob & set_blob (const Symbol &att, const Blob &v)
 
Blob & set_ref_blob (const Symbol &att, Blob &v)
 
const Blob & set_cref_blob (const Symbol &att, const Blob &v)
 
const ListBlob & get_list_blob (const Symbol &att) const
 
const ListBlob * get_plist_blob (const Symbol &att) const
 
ListBlob & set_list_blob (const Symbol &att)
 
ListBlob & set_list_blob (const Symbol &att, const ListBlob &v)
 
ListBlob & set_ref_list_blob (const Symbol &att, ListBlob &v)
 
const ListBlob & set_cref_list_blob (const Symbol &att, const ListBlob &v)
 
Blob & add_blob (const Symbol &att, const Blob &v=Blob())
 
const Tuple & get_tuple (const Symbol &att) const
 
const Tuple * get_ptuple (const Symbol &att) const
 
Tuple & set_tuple (const Symbol &att)
 
Tuple & set_tuple (const Symbol &att, const Tuple &v)
 
Tuple & set_ref_tuple (const Symbol &att, Tuple &v)
 
const Tuple & set_cref_tuple (const Symbol &att, const Tuple &v)
 
const ListTuple & get_list_tuple (const Symbol &att) const
 
const ListTuple * get_plist_tuple (const Symbol &att) const
 
ListTuple & set_list_tuple (const Symbol &att)
 
ListTuple & set_list_tuple (const Symbol &att, const ListTuple &v)
 
ListTuple & set_ref_list_tuple (const Symbol &att, ListTuple &v)
 
const ListTuple & set_cref_list_tuple (const Symbol &att, const ListTuple &v)
 
Tuple & add_tuple (const Symbol &att, const Tuple &v=Tuple())
 
const ArrayInt & get_array_int (const Symbol &att) const
 
const ArrayInt * get_parray_int (const Symbol &att) const
 
ArrayInt & set_array_int (const Symbol &att)
 
ArrayInt & set_array_int (const Symbol &att, const ArrayInt &v)
 
ArrayInt & set_ref_array_int (const Symbol &att, ArrayInt &v)
 
const ArrayInt & set_cref_array_int (const Symbol &att, const ArrayInt &v)
 
const ListArrayInt & get_list_array_int (const Symbol &att) const
 
const ListArrayInt * get_plist_array_int (const Symbol &att) const
 
ListArrayInt & set_list_array_int (const Symbol &att)
 
ListArrayInt & set_list_array_int (const Symbol &att, const ListArrayInt &v)
 
ListArrayInt & set_ref_list_array_int (const Symbol &att, ListArrayInt &v)
 
const ListArrayInt & set_cref_list_array_int (const Symbol &att, const ListArrayInt &v)
 
ArrayInt & add_array_int (const Symbol &att, const ArrayInt &v=ArrayInt())
 
const ArrayLong & get_array_long (const Symbol &att) const
 
const ArrayLong * get_parray_long (const Symbol &att) const
 
ArrayLong & set_array_long (const Symbol &att)
 
ArrayLong & set_array_long (const Symbol &att, const ArrayLong &v)
 
ArrayLong & set_ref_array_long (const Symbol &att, ArrayLong &v)
 
const ArrayLong & set_cref_array_long (const Symbol &att, const ArrayLong &v)
 
const ListArrayLong & get_list_array_long (const Symbol &att) const
 
const ListArrayLong * get_plist_array_long (const Symbol &att) const
 
ListArrayLong & set_list_array_long (const Symbol &att)
 
ListArrayLong & set_list_array_long (const Symbol &att, const ListArrayLong &v)
 
ListArrayLong & set_ref_list_array_long (const Symbol &att, ListArrayLong &v)
 
const ListArrayLong & set_cref_list_array_long (const Symbol &att, const ListArrayLong &v)
 
ArrayLong & add_array_long (const Symbol &att, const ArrayLong &v=ArrayLong())
 
const ArrayFloat & get_array_float (const Symbol &att) const
 
const ArrayFloat * get_parray_float (const Symbol &att) const
 
ArrayFloat & set_array_float (const Symbol &att)
 
ArrayFloat & set_array_float (const Symbol &att, const ArrayFloat &v)
 
ArrayFloat & set_ref_array_float (const Symbol &att, ArrayFloat &v)
 
const ArrayFloat & set_cref_array_float (const Symbol &att, const ArrayFloat &v)
 
const ListArrayFloat & get_list_array_float (const Symbol &att) const
 
const ListArrayFloat * get_plist_array_float (const Symbol &att) const
 
ListArrayFloat & set_list_array_float (const Symbol &att)
 
ListArrayFloat & set_list_array_float (const Symbol &att, const ListArrayFloat &v)
 
ListArrayFloat & set_ref_list_array_float (const Symbol &att, ListArrayFloat &v)
 
const ListArrayFloat & set_cref_list_array_float (const Symbol &att, const ListArrayFloat &v)
 
ArrayFloat & add_array_float (const Symbol &att, const ArrayFloat &v=ArrayFloat())
 
const ArrayDouble & get_array_double (const Symbol &att) const
 
const ArrayDouble * get_parray_double (const Symbol &att) const
 
ArrayDouble & set_array_double (const Symbol &att)
 
ArrayDouble & set_array_double (const Symbol &att, const ArrayDouble &v)
 
ArrayDouble & set_ref_array_double (const Symbol &att, ArrayDouble &v)
 
const ArrayDouble & set_cref_array_double (const Symbol &att, const ArrayDouble &v)
 
const ListArrayDouble & get_list_array_double (const Symbol &att) const
 
const ListArrayDouble * get_plist_array_double (const Symbol &att) const
 
ListArrayDouble & set_list_array_double (const Symbol &att)
 
ListArrayDouble & set_list_array_double (const Symbol &att, const ListArrayDouble &v)
 
ListArrayDouble & set_ref_list_array_double (const Symbol &att, ListArrayDouble &v)
 
const ListArrayDouble & set_cref_list_array_double (const Symbol &att, const ListArrayDouble &v)
 
ArrayDouble & add_array_double (const Symbol &att, const ArrayDouble &v=ArrayDouble())
 
bool match (const AString &pattern, IBStream &source)
 
bool match (const AString &pattern, const AString &source)
 
bool match (const AString &pattern, IBStream &source, AChar esc)
 
bool match (const AString &pattern, const AString &source, AChar esc)
 
bool operator== (const Tuple &t) const
 
bool operator!= (const Tuple &t) const
 
bool operator< (const Tuple &t) const
 
bool operator> (const Tuple &t) const
 

Member Enumeration Documentation

Enumerator
EMPTY 
OPER 
IDENT 
STRING 
QSTRING 
NUMBER 

Constructor & Destructor Documentation

CmrParser::CmrParser ( IBStream &  isource)
CmrParser::CmrParser ( const Path &  file)
CmrParser::CmrParser ( const AString &  s)
CmrParser::~CmrParser ( )

Member Function Documentation

const ListAString& commore::CmrParser::get_comment ( ) const
inline
AString CmrParser::get_expected ( ) const
const StringBuffer& commore::CmrParser::get_layout ( ) const
inline
int CmrParser::get_line ( ) const
int CmrParser::get_number ( )
const AString & CmrParser::get_source_name ( )
bool commore::CmrParser::get_string_mode ( ) const
inline
WORD_TYPE commore::CmrParser::get_type ( )
inline
AString& commore::CmrParser::get_word ( )
inline
bool commore::CmrParser::is_eof ( )
inline
bool commore::CmrParser::is_ident ( )
inline
bool CmrParser::is_ident ( const char *  s)
bool CmrParser::is_ident_read ( const char *  s)
bool CmrParser::is_ident_read ( AString &  s)
bool CmrParser::is_identu ( const char *  s)
bool CmrParser::is_identu_read ( const char *  s)
bool CmrParser::is_number ( )
bool CmrParser::is_number ( int &  v)
bool CmrParser::is_number_read ( int &  v)
bool CmrParser::is_number_read ( AString &  v)
bool CmrParser::is_open ( )
bool commore::CmrParser::is_oper ( )
inline
bool CmrParser::is_oper ( const char *  s)
bool CmrParser::is_oper_read ( const char *  s)
bool commore::CmrParser::is_qstring ( )
inline
bool commore::CmrParser::is_qstring_read ( AString &  s)
inline
bool commore::CmrParser::is_string ( )
inline
bool commore::CmrParser::is_string_read ( AString &  s)
inline
CmrParser::WORD_TYPE CmrParser::read_next ( )
void commore::CmrParser::set_string_mode ( bool  basic = true)
inline

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