#include <DotFile.h>
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 |
enum DotState [private] |
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 | ) |
string getNextNodeId | ( | void | ) |
string getNextClusterId | ( | void | ) |
void test | ( | std::string | filename | ) |
FILE* _dotFile [private] |
long _nextNodeId [private] |
long _nextClusterId [private] |