Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jive::util::TablesParser Class Reference

#include <jive/util/TablesParser.h>

Inheritance diagram for jive::util::TablesParser:
Inheritance graph

Public Member Functions

 TablesParser (const Ref< MPContext > &mpx=NIL, const Ref< ItemSet > &items=NIL, const Ref< Dictionary > &tables=NIL, const Ref< Dictionary > &rowGroups=NIL, const String &filter="*")
 
virtual void reset ()
 
virtual void parseContents (State &state)
 
virtual void handleEmptyContents (State &state)
 
virtual void finish (State &state)
 
virtual void takeAction (const String &action, const Properties &params)
 
void setTables (const Ref< ItemSet > &items, const Ref< Dictionary > &tables)
 
void setRowGroups (const Ref< Dictionary > &rowGroups)
 
void setNameFilter (const String &pattern)
 
- Public Member Functions inherited from jem::xml::TagParser
 TagParser (const String &attribs="")
 
virtual void parse (State &state)
 
const StringgetTagName () const
 
- Public Member Functions inherited from jem::xml::Parser
void parseInput (const Ref< Tokenizer > &input, const String &source, const Ref< ParseLog > &log=NIL)
 
void parseFile (const String &fname, const Ref< ParseLog > &log=NIL)
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Protected Member Functions

virtual ~TablesParser ()
 
virtual void handleAttribute (State &state, const String &name, const String &value, idx_t index)
 
- Protected Member Functions inherited from jem::xml::TagParser
virtual ~TagParser ()
 
- Protected Member Functions inherited from jem::xml::Parser
virtual ~Parser ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::xml::AttributeParser
 AttributeParser ()
 
 AttributeParser (const String &attribs)
 
virtual ~AttributeParser ()
 
void clear ()
 
idx_t declareAttribute (const String &name, Kind kind)
 
idx_t declareAttributes (const String &attribs)
 
int parseAttributes (ParserState &state, bool lenient=false)
 

Additional Inherited Members

- Public Types inherited from jem::xml::TagParser
typedef TagParser Self
 
typedef Parser Super
 
- Public Types inherited from jem::xml::Parser
typedef ParserState State
 
- Static Public Member Functions inherited from jem::xml::Parser
static void pushInput (State &state, const Ref< Tokenizer > &input, const String &source, const Ref< Parser > &parser=NIL)
 
static void parseEndTag (State &state, const String &tagName)
 
static void parseError (State &state)
 
static void parseError (State &state, const String &msg)
 
static void inputError (State &state, const String &msg)
 
static void illegalTagError (State &state, const String &tagName)
 
static void illegalAttributeError (State &state, const String &attribName)
 
static void missingAttributeError (State &state, const String &attribName)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Protected Types inherited from jem::xml::AttributeParser
enum  Kind {
  OPTIONAL,
  REQUIRED
}
 
- Static Protected Member Functions inherited from jem::xml::AttributeParser
static bool parseBoolean (ParserState &state, const String &name, const String &value)
 
static lint parseInteger (ParserState &state, const String &name, const String &value)
 
static lint parseInteger (ParserState &state, const String &name, const String &value, lint min, lint max)
 
static double parseFloat (ParserState &state, const String &name, const String &value)
 
static double parseFloat (ParserState &state, const String &name, const String &value, double min, double max)
 
- Protected Attributes inherited from jem::xml::TagParser
bool isLenient_
 

Constructor & Destructor Documentation

jive::util::TablesParser::TablesParser ( const Ref< MPContext > &  mpx = NIL,
const Ref< ItemSet > &  items = NIL,
const Ref< Dictionary > &  tables = NIL,
const Ref< Dictionary > &  rowGroups = NIL,
const String filter = "*" 
)
explicit
virtual jive::util::TablesParser::~TablesParser ( )
protectedvirtual

Member Function Documentation

virtual void jive::util::TablesParser::reset ( )
virtual

Reimplemented from jem::xml::TagParser.

virtual void jive::util::TablesParser::parseContents ( State state)
virtual

Reimplemented from jem::xml::TagParser.

virtual void jive::util::TablesParser::handleEmptyContents ( State state)
virtual

Reimplemented from jem::xml::TagParser.

virtual void jive::util::TablesParser::finish ( State state)
virtual

Reimplemented from jem::xml::TagParser.

virtual void jive::util::TablesParser::takeAction ( const String action,
const Properties params 
)
virtual

Reimplemented from jem::xml::TagParser.

void jive::util::TablesParser::setTables ( const Ref< ItemSet > &  items,
const Ref< Dictionary > &  tables 
)
void jive::util::TablesParser::setRowGroups ( const Ref< Dictionary > &  rowGroups)
void jive::util::TablesParser::setNameFilter ( const String pattern)
virtual void jive::util::TablesParser::handleAttribute ( State state,
const String name,
const String value,
idx_t  index 
)
protectedvirtual