Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions
jem::xml::Tokenizer Class Reference

#include <jem/xml/Tokenizer.h>

Inheritance diagram for jem::xml::Tokenizer:
Inheritance graph

Public Types

typedef Tokenizer Self
 
typedef Object Super
 

Public Member Functions

 Tokenizer (const String &in=String())
 
 Tokenizer (const Ref< Reader > &in, idx_t bufsize=-1)
 
void setInput (const String &str)
 
int nextToken ()
 
void pushBackToken ()
 
int getToken () const
 
lint getLineNumber () const
 
void setLineNumber (lint lineno)
 
String getTokenString () const
 
String getComment () const
 
String getTagName () const
 
String getSymbol () const
 
String getString () const
 
bool getBoolean () const
 
long getInteger () const
 
double getFloat () const
 
void setOptions (int options)
 
int getOptions () const
 
bool readAttribute (String &name, String &value)
 
int skipAttributes ()
 
int readAttributes (TextOutput &out)
 
void skipToEndTag (const String &tagName)
 
String readToEndTag (const String &tagName)
 
void readToEndTag (TextOutput &out, const String &tagName)
 
String readText ()
 
int readText (TextOutput &out)
 
- 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...
 

Static Public Attributes

static const int NULL_TOKEN
 
static const int EOF_TOKEN
 
static const int COMMENT_TOKEN
 
static const int START_TAG_TOKEN
 
static const int TAG_END_TOKEN
 
static const int EMPTY_TAG_END_TOKEN
 
static const int END_TAG_TOKEN
 
static const int SYMBOL_TOKEN
 
static const int STRING_TOKEN
 
static const int BOOLEAN_TOKEN
 
static const int INTEGER_TOKEN
 
static const int FLOAT_TOKEN
 
static const int PARSE_COMMENTS
 
static const int PARSE_SYMBOLS
 
static const int PARSE_STRINGS
 
static const int PARSE_BOOLEANS
 
static const int PARSE_NUMBERS
 
static const int PARSE_SIGNED_NUMBERS
 

Protected Member Functions

virtual ~Tokenizer ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

jem::xml::Tokenizer::Tokenizer ( const String in = String())
explicit
jem::xml::Tokenizer::Tokenizer ( const Ref< Reader > &  in,
idx_t  bufsize = -1 
)
explicit
virtual jem::xml::Tokenizer::~Tokenizer ( )
protectedvirtual

Member Function Documentation

void jem::xml::Tokenizer::setInput ( const String str)
int jem::xml::Tokenizer::nextToken ( )
void jem::xml::Tokenizer::pushBackToken ( )
int jem::xml::Tokenizer::getToken ( ) const
lint jem::xml::Tokenizer::getLineNumber ( ) const
void jem::xml::Tokenizer::setLineNumber ( lint  lineno)
String jem::xml::Tokenizer::getTokenString ( ) const
String jem::xml::Tokenizer::getComment ( ) const
String jem::xml::Tokenizer::getTagName ( ) const
String jem::xml::Tokenizer::getSymbol ( ) const
String jem::xml::Tokenizer::getString ( ) const
bool jem::xml::Tokenizer::getBoolean ( ) const
long jem::xml::Tokenizer::getInteger ( ) const
double jem::xml::Tokenizer::getFloat ( ) const
void jem::xml::Tokenizer::setOptions ( int  options)
int jem::xml::Tokenizer::getOptions ( ) const
bool jem::xml::Tokenizer::readAttribute ( String name,
String value 
)
int jem::xml::Tokenizer::skipAttributes ( )
int jem::xml::Tokenizer::readAttributes ( TextOutput out)
void jem::xml::Tokenizer::skipToEndTag ( const String tagName)
String jem::xml::Tokenizer::readToEndTag ( const String tagName)
void jem::xml::Tokenizer::readToEndTag ( TextOutput out,
const String tagName 
)
String jem::xml::Tokenizer::readText ( )
int jem::xml::Tokenizer::readText ( TextOutput out)

Member Data Documentation

const int jem::xml::Tokenizer::NULL_TOKEN
static
const int jem::xml::Tokenizer::EOF_TOKEN
static
const int jem::xml::Tokenizer::COMMENT_TOKEN
static
const int jem::xml::Tokenizer::START_TAG_TOKEN
static
const int jem::xml::Tokenizer::TAG_END_TOKEN
static
const int jem::xml::Tokenizer::EMPTY_TAG_END_TOKEN
static
const int jem::xml::Tokenizer::END_TAG_TOKEN
static
const int jem::xml::Tokenizer::SYMBOL_TOKEN
static
const int jem::xml::Tokenizer::STRING_TOKEN
static
const int jem::xml::Tokenizer::BOOLEAN_TOKEN
static
const int jem::xml::Tokenizer::INTEGER_TOKEN
static
const int jem::xml::Tokenizer::FLOAT_TOKEN
static
const int jem::xml::Tokenizer::PARSE_COMMENTS
static
const int jem::xml::Tokenizer::PARSE_SYMBOLS
static
const int jem::xml::Tokenizer::PARSE_STRINGS
static
const int jem::xml::Tokenizer::PARSE_BOOLEANS
static
const int jem::xml::Tokenizer::PARSE_NUMBERS
static
const int jem::xml::Tokenizer::PARSE_SIGNED_NUMBERS
static