ERAV: Entity Relation Attribute Value:
Public Member Functions | Private Member Functions | Private Attributes | Friends
ERAV::parser Class Reference

#include <ERAV.h>

List of all members.

Public Member Functions

 parser (const char *XML, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
 parser (const std::string &XML, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
void set (const char *XML, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
void set (const std::string &XML, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
 ~parser ()
void parse ()

Private Member Functions

void real_set (const char *XML, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S, bool makeCopy)
void match (int num)
void error (const char *msg)
void all ()
 all : head docs;
void head ()
 head : "<?" "xml" args "?>" | /* empty */;
void docs ()
 docs : doc docs | /* empty */;
void doc ()
 doc : '<' ID args nest;
void nest (ID_val)
 nest : "/>" | '>' docs "</" ID "/>";
void args ()
 args : arg args | /* empty */;
void arg ()
 arg : ID '=' STRING;
void pushContext ()
void setAttrib ()
void popContext ()
void setAttribVal ()
void emit ()
 parser (const parser &)
void operator= (const parser &)

Private Attributes

tokenm_lookahead
token token1
token token2
const char * m_XML
bool deleteXML
const char * m_yytext
int m_yyleng
int m_yyline
const char * m_cursor
contextm_context
contextm_context_old
int m_id
int m_nest_id
int m_tag
int m_attrib
char m_rel_type
std::string m_str_val
int m_attrib_ref
int m_id_word
bool m_inWord
char m_lang [4]
std::list< ERAV::tuple > * m_L
ERAV::WORDm_WORD
ERAV::WORDm_STRING

Friends

class exception

Detailed Description

Definition at line 209 of file ERAV.h.


Constructor & Destructor Documentation

ERAV::parser::parser ( const char *  XML,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
) [inline]

Definition at line 211 of file ERAV.h.

ERAV::parser::parser ( const std::string &  XML,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
) [inline]

Definition at line 218 of file ERAV.h.

ERAV::parser::~parser ( )

Definition at line 287 of file ERAV.cpp.

ERAV::parser::parser ( const parser ) [private]

Member Function Documentation

void ERAV::parser::set ( const char *  XML,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
) [inline]

Definition at line 225 of file ERAV.h.

void ERAV::parser::set ( const std::string &  XML,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
) [inline]

Definition at line 228 of file ERAV.h.

void ERAV::parser::parse ( )

Definition at line 271 of file ERAV.cpp.

void ERAV::parser::real_set ( const char *  XML,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S,
bool  makeCopy 
) [private]

Definition at line 293 of file ERAV.cpp.

void ERAV::parser::match ( int  num) [private]

Definition at line 324 of file ERAV.cpp.

void ERAV::parser::error ( const char *  msg) [private]

Definition at line 435 of file ERAV.cpp.

void ERAV::parser::all ( ) [private]

all : head docs;

Definition at line 9 of file ERAV.cpp.

void ERAV::parser::head ( ) [private]

head : "<?" "xml" args "?>" | /* empty */;

Definition at line 15 of file ERAV.cpp.

void ERAV::parser::docs ( ) [private]

docs : doc docs | /* empty */;

Definition at line 29 of file ERAV.cpp.

void ERAV::parser::doc ( ) [private]

doc : '<' ID args nest;

Definition at line 38 of file ERAV.cpp.

void ERAV::parser::nest ( ID_val  ) [private]

nest : "/>" | '>' docs "</" ID "/>";

Definition at line 52 of file ERAV.cpp.

void ERAV::parser::args ( ) [private]

args : arg args | /* empty */;

Definition at line 74 of file ERAV.cpp.

void ERAV::parser::arg ( ) [private]

arg : ID '=' STRING;

Definition at line 83 of file ERAV.cpp.

void ERAV::parser::pushContext ( ) [private]

Definition at line 142 of file ERAV.cpp.

void ERAV::parser::setAttrib ( ) [private]

Definition at line 183 of file ERAV.cpp.

void ERAV::parser::popContext ( ) [private]

Definition at line 171 of file ERAV.cpp.

void ERAV::parser::setAttribVal ( ) [private]

Definition at line 195 of file ERAV.cpp.

void ERAV::parser::emit ( ) [private]

Definition at line 94 of file ERAV.cpp.

void ERAV::parser::operator= ( const parser ) [private]

Friends And Related Function Documentation

friend class exception [friend]

Definition at line 238 of file ERAV.h.


Member Data Documentation

Definition at line 258 of file ERAV.h.

Definition at line 259 of file ERAV.h.

Definition at line 259 of file ERAV.h.

const char* ERAV::parser::m_XML [private]

Definition at line 261 of file ERAV.h.

bool ERAV::parser::deleteXML [private]

Definition at line 262 of file ERAV.h.

const char* ERAV::parser::m_yytext [private]

Definition at line 263 of file ERAV.h.

int ERAV::parser::m_yyleng [private]

Definition at line 264 of file ERAV.h.

int ERAV::parser::m_yyline [private]

Definition at line 265 of file ERAV.h.

const char* ERAV::parser::m_cursor [private]

Definition at line 266 of file ERAV.h.

Definition at line 268 of file ERAV.h.

Definition at line 269 of file ERAV.h.

int ERAV::parser::m_id [private]

Definition at line 271 of file ERAV.h.

int ERAV::parser::m_nest_id [private]

Definition at line 272 of file ERAV.h.

int ERAV::parser::m_tag [private]

Definition at line 274 of file ERAV.h.

int ERAV::parser::m_attrib [private]

Definition at line 275 of file ERAV.h.

char ERAV::parser::m_rel_type [private]

Definition at line 276 of file ERAV.h.

std::string ERAV::parser::m_str_val [private]

Definition at line 277 of file ERAV.h.

Definition at line 278 of file ERAV.h.

int ERAV::parser::m_id_word [private]

Definition at line 280 of file ERAV.h.

bool ERAV::parser::m_inWord [private]

Definition at line 281 of file ERAV.h.

char ERAV::parser::m_lang[4] [private]

Definition at line 282 of file ERAV.h.

std::list<ERAV::tuple>* ERAV::parser::m_L [private]

Definition at line 284 of file ERAV.h.

Definition at line 285 of file ERAV.h.

Definition at line 286 of file ERAV.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines