Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Member Functions
jem::xml::AttributeParser Class Referenceabstract

#include <jem/xml/AttributeParser.h>

Inheritance diagram for jem::xml::AttributeParser:
Inheritance graph

Public Types

enum  Kind {
  OPTIONAL,
  REQUIRED
}
 

Public Member Functions

 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)
 
virtual void handleAttribute (ParserState &state, const String &name, const String &value, idx_t index)=0
 

Static Public Member Functions

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)
 

Member Enumeration Documentation

Enumerator
OPTIONAL 
REQUIRED 

Constructor & Destructor Documentation

jem::xml::AttributeParser::AttributeParser ( )
jem::xml::AttributeParser::AttributeParser ( const String attribs)
explicit
virtual jem::xml::AttributeParser::~AttributeParser ( )
virtual

Member Function Documentation

void jem::xml::AttributeParser::clear ( )
idx_t jem::xml::AttributeParser::declareAttribute ( const String name,
Kind  kind 
)
idx_t jem::xml::AttributeParser::declareAttributes ( const String attribs)
int jem::xml::AttributeParser::parseAttributes ( ParserState state,
bool  lenient = false 
)
virtual void jem::xml::AttributeParser::handleAttribute ( ParserState state,
const String name,
const String value,
idx_t  index 
)
pure virtual
static bool jem::xml::AttributeParser::parseBoolean ( ParserState state,
const String name,
const String value 
)
static
static lint jem::xml::AttributeParser::parseInteger ( ParserState state,
const String name,
const String value 
)
static
static lint jem::xml::AttributeParser::parseInteger ( ParserState state,
const String name,
const String value,
lint  min,
lint  max 
)
static
static double jem::xml::AttributeParser::parseFloat ( ParserState state,
const String name,
const String value 
)
static
static double jem::xml::AttributeParser::parseFloat ( ParserState state,
const String name,
const String value,
double  min,
double  max 
)
static