Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

xmlreader.cpp File Reference

#include <libxml/xmlreader.h>
#include <cstdarg>
#include <cctype>
#include <cassert>
#include <algorithm>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include "libparser.h"
#include "tags.cc"

Enumerations

enum  tag_t {
  TAG_NTA, TAG_IMPORTS, TAG_DECLARATION, TAG_TEMPLATE,
  TAG_INSTANTIATION, TAG_SYSTEM, TAG_NAME, TAG_PARAMETER,
  TAG_LOCATION, TAG_INIT, TAG_TRANSITION, TAG_URGENT,
  TAG_COMMITTED, TAG_SOURCE, TAG_TARGET, TAG_LABEL,
  TAG_NAIL
}
 Enumeration type for tags. More...

Functions

static bool isempty (const char *p)
 Returns TRUE if string is NULL, zero length or contains only white spaces otherwise FALSE.
static bool isAlpha (char c)
static bool isIdChr (char c)
static char * symbol (const char *str)
 Extracts the alpha-numerical symbol used for variable/type identifiers.
int32_t parseXMLFile (const char *filename, ParserBuilder *pb, ErrorHandler *errHandler, bool newxta)
int32_t parseXMLBuffer (const char *buffer, ParserBuilder *pb, ErrorHandler *errHandler, bool newxta)

Enumeration Type Documentation

enum tag_t
 

Enumeration type for tags.

We use gperf to generate a perfect hash function to map tag strings to one of these tags.

Enumeration values:
TAG_NTA 
TAG_IMPORTS 
TAG_DECLARATION 
TAG_TEMPLATE 
TAG_INSTANTIATION 
TAG_SYSTEM 
TAG_NAME 
TAG_PARAMETER 
TAG_LOCATION 
TAG_INIT 
TAG_TRANSITION 
TAG_URGENT 
TAG_COMMITTED 
TAG_SOURCE 
TAG_TARGET 
TAG_LABEL 
TAG_NAIL 


Function Documentation

static bool isAlpha char  c  )  [static]
 

static bool isempty const char *  p  )  [static]
 

Returns TRUE if string is NULL, zero length or contains only white spaces otherwise FALSE.

static bool isIdChr char  c  )  [static]
 

int32_t parseXMLBuffer const char *  buffer,
ParserBuilder pb,
ErrorHandler errHandler,
bool  newxta
 

int32_t parseXMLFile const char *  filename,
ParserBuilder pb,
ErrorHandler errHandler,
bool  newxta
 

static char* symbol const char *  str  )  [static]
 

Extracts the alpha-numerical symbol used for variable/type identifiers.

Identifier starts with alpha and further might contain digits, white spaces are ignored.

Throws a TypeException is identifier is invalid or a newly allocated string to be destroyed with delete [].


Generated on Thu Feb 17 15:20:58 2005 for libutap by  doxygen 1.4.1