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 <stdexcept>
#include <cstdarg>
#include <cctype>
#include <cassert>
#include <algorithm>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include "libparser.h"
#include "tags.cc"

Namespaces

namespace  UTAP

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_WINNING, TAG_LOSING, TAG_SOURCE,
  TAG_TARGET, TAG_LABEL, TAG_NAIL, TAG_NONE
}
 Enumeration type for tags. More...

Functions

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

Enumeration Type Documentation

enum UTAP::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_WINNING 
TAG_LOSING 
TAG_SOURCE 
TAG_TARGET 
TAG_LABEL 
TAG_NAIL 
TAG_NONE 


Function Documentation

static bool UTAP::isAlpha char  c  )  [static]
 

static bool UTAP::isempty string  str  )  [static]
 

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

static bool UTAP::isIdChr char  c  )  [static]
 

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

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

static string UTAP::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 Sat Apr 29 21:02:14 2006 for libutap by  doxygen 1.4.2