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  UTAP::tag_t {
  UTAP::TAG_NTA, UTAP::TAG_IMPORTS, UTAP::TAG_DECLARATION, UTAP::TAG_TEMPLATE,
  UTAP::TAG_INSTANTIATION, UTAP::TAG_SYSTEM, UTAP::TAG_NAME, UTAP::TAG_PARAMETER,
  UTAP::TAG_LOCATION, UTAP::TAG_INIT, UTAP::TAG_TRANSITION, UTAP::TAG_URGENT,
  UTAP::TAG_COMMITTED, UTAP::TAG_SOURCE, UTAP::TAG_TARGET, UTAP::TAG_LABEL,
  UTAP::TAG_NAIL, UTAP::TAG_NONE
}
 Enumeration type for tags. More...

Functions

static bool UTAP::isempty (string str)
 Returns TRUE if string is zero length or contains only white spaces otherwise FALSE.
static bool UTAP::isAlpha (char c)
static bool UTAP::isIdChr (char c)
static string UTAP::symbol (const char *str)
 Extracts the alpha-numerical symbol used for variable/type identifiers.
int32_t parseXMLFile (const char *filename, ParserBuilder *pb, bool newxta)
 Parse the file with the given name assuming it is in the XML format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.
int32_t parseXMLBuffer (const char *buffer, ParserBuilder *pb, bool newxta)
 Parse a buffer in the XML format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.

Function Documentation

int32_t parseXMLBuffer ( const char *  buffer,
UTAP::ParserBuilder ,
bool  newxta 
)

Parse a buffer in the XML format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.

If newxta is true, then the 4.x syntax is used; otherwise the 3.x syntax is used. On success, this function returns with a positive value.

int32_t parseXMLFile ( const char *  filename,
UTAP::ParserBuilder ,
bool  newxta 
)

Parse the file with the given name assuming it is in the XML format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.

If newxta is true, then the 4.x syntax is used; otherwise the 3.x syntax is used. On success, this function returns with a positive value.


Generated on Thu Feb 22 14:46:52 2007 for libutap by  doxygen 1.4.7