libutap
Public Member Functions | Public Attributes | List of all members
UTAP::XMLWriter Class Reference

#include <xmlwriter.h>

Inheritance diagram for UTAP::XMLWriter:
SBMLtoXMLWriter

Public Member Functions

void startDocument ()
 
void endDocument ()
 
void startElement (const char *element)
 
void endElement ()
 
void writeElement (const char *name, const char *content)
 
void writeAttribute (const char *name, const char *value)
 
void writeString (const char *content)
 
void xmlwriteString (const xmlChar *content)
 
void taTempl (const template_t &templ)
 writes a template More...
 
void location (const state_t &state)
 
void init (const template_t &templ)
 
void name (const state_t &state, int x, int y)
 
void writeStateAttributes (const state_t &state, int x, int y)
 
void transition (const edge_t &edge)
 
void nail (int x, int y)
 
void label (const char *kind, std::string data, int x, int y)
 
int source (const edge_t &edge)
 
int target (const edge_t &edge)
 
void selfLoop (int loc, float initialAngle, const edge_t &edge)
 
void labels (int x, int y, const edge_t &edge)
 
void declaration ()
 Parses optional declaration. More...
 
std::string getChanPriority () const
 
void parameter ()
 
void system_instantiation ()
 
 XMLWriter (xmlTextWriterPtr writer, TimedAutomataSystem *taSystem)
 
virtual ~XMLWriter ()
 
void project ()
 Parse the project document. More...
 

Public Attributes

xmlTextWriterPtr writer
 The underlying xmlTextWriter. More...
 
TimedAutomataSystemtaSystem
 The system to write. More...
 
std::map< int, int > selfLoops
 

Constructor & Destructor Documentation

XMLWriter::XMLWriter ( xmlTextWriterPtr  writer,
TimedAutomataSystem taSystem 
)
XMLWriter::~XMLWriter ( )
virtual

References writer.

Member Function Documentation

void XMLWriter::declaration ( )
void XMLWriter::endDocument ( )

References writer.

Referenced by project().

void XMLWriter::endElement ( )
string XMLWriter::getChanPriority ( ) const
void XMLWriter::init ( const template_t templ)
void XMLWriter::label ( const char *  kind,
std::string  data,
int  x,
int  y 
)
void XMLWriter::labels ( int  x,
int  y,
const edge_t edge 
)
void XMLWriter::location ( const state_t state)
void XMLWriter::nail ( int  x,
int  y 
)
void XMLWriter::name ( const state_t state,
int  x,
int  y 
)
void UTAP::XMLWriter::parameter ( )
void XMLWriter::project ( )
void XMLWriter::selfLoop ( int  loc,
float  initialAngle,
const edge_t edge 
)

References labels(), nail(), PI, RADIUS, selfLoops, STEP, x1, and y1.

Referenced by transition().

int XMLWriter::source ( const edge_t edge)
void XMLWriter::startDocument ( )

References MY_ENCODING, and writer.

Referenced by project().

void XMLWriter::startElement ( const char *  element)
void XMLWriter::system_instantiation ( )
int XMLWriter::target ( const edge_t edge)
void XMLWriter::taTempl ( const template_t templ)
void XMLWriter::transition ( const edge_t edge)
void XMLWriter::writeAttribute ( const char *  name,
const char *  value 
)
void XMLWriter::writeElement ( const char *  name,
const char *  content 
)

References writer.

Referenced by declaration(), system_instantiation(), and taTempl().

void XMLWriter::writeStateAttributes ( const state_t state,
int  x,
int  y 
)
void XMLWriter::writeString ( const char *  content)

References writer.

Referenced by name().

void XMLWriter::xmlwriteString ( const xmlChar *  content)

References writer.

Referenced by label().

Member Data Documentation

std::map<int, int> UTAP::XMLWriter::selfLoops

Referenced by selfLoop(), and taTempl().

TimedAutomataSystem* UTAP::XMLWriter::taSystem

The system to write.

Referenced by declaration(), getChanPriority(), project(), and system_instantiation().

xmlTextWriterPtr UTAP::XMLWriter::writer

The documentation for this class was generated from the following files: