DotFile Class Reference

#include <DotFile.h>

List of all members.

Public Member Functions

 DotFile (const char *filename)
 ~DotFile (void)
void startGraph (std::string id)
void endGraph (void)
void startDefaultAttributes (std::string elementName)
void endDefaultAttributes (void)
void startCluster (std::string id)
void endCluster (void)
void startNode (std::string id)
void endNode (void)
void startEdge (std::string fromId, std::string toId)
void endEdge (void)
long allocateEdgeSpace (unsigned int size=60)
void startEdge (long position, std::string fromId, std::string toId)
void writeAttribute (std::string id, std::string value)
void writeAttribute (DotAttribute *attribute)
void writeAttributes (std::vector< DotAttribute * > &attributes)
std::string getNextNodeId (void)
std::string getNextClusterId (void)
void test (std::string filename)

Private Types

enum  DotState {
  START, ELEMENT, DEFAULT_ATTR, NODE,
  EDGE, ATTRIBUTES, END
}

Private Attributes

FILE * _dotFile
DotState _state
long _nextNodeId
long _nextClusterId


Member Enumeration Documentation

enum DotState [private]

Enumerator:
START 
ELEMENT 
DEFAULT_ATTR 
NODE 
EDGE 
ATTRIBUTES 
END 


Constructor & Destructor Documentation

DotFile ( const char *  filename  ) 

~DotFile ( void   ) 


Member Function Documentation

void startGraph ( std::string  id  ) 

void endGraph ( void   ) 

void startDefaultAttributes ( std::string  elementName  ) 

void endDefaultAttributes ( void   ) 

void startCluster ( std::string  id  ) 

void endCluster ( void   ) 

void startNode ( std::string  id  ) 

void endNode ( void   ) 

void startEdge ( std::string  fromId,
std::string  toId 
)

void endEdge ( void   ) 

long allocateEdgeSpace ( unsigned int  size = 60  ) 

void startEdge ( long  position,
std::string  fromId,
std::string  toId 
)

void writeAttribute ( std::string  id,
std::string  value 
)

void writeAttribute ( DotAttribute attribute  ) 

void writeAttributes ( std::vector< DotAttribute * > &  attributes  ) 

string getNextNodeId ( void   ) 

string getNextClusterId ( void   ) 

void test ( std::string  filename  ) 


Member Data Documentation

FILE* _dotFile [private]

DotState _state [private]

long _nextNodeId [private]

long _nextClusterId [private]


The documentation for this class was generated from the following files:
Generated on Mon Apr 2 15:20:57 2007 for MXFLib by  doxygen 1.5.1-p1