Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::GraphMLParser Class Reference

#include <ogdf/fileformats/GraphMLParser.h>

Public Member Functions

 GraphMLParser (std::istream &in)
 
 ~GraphMLParser ()
 
bool read (Graph &G)
 
bool read (Graph &G, ClusterGraph &C)
 
bool read (Graph &G, ClusterGraph &C, ClusterGraphAttributes &CA)
 
bool read (Graph &G, GraphAttributes &GA)
 

Private Member Functions

template<typename A , typename T >
bool readAttributes (A &GA, const T &elem, const pugi::xml_node xmlElem)
 
bool readClusters (Graph &G, ClusterGraph &C, ClusterGraphAttributes *CA, const cluster &rootCluster, const pugi::xml_node clusterRoot)
 
bool readData (ClusterGraphAttributes &CA, const cluster &c, const pugi::xml_node clusterData)
 
bool readData (GraphAttributes &GA, const edge &e, const pugi::xml_node edgeData)
 
bool readData (GraphAttributes &GA, const node &v, const pugi::xml_node nodeData)
 
bool readEdges (Graph &G, GraphAttributes *GA, const pugi::xml_node rootTag)
 
bool readNodes (Graph &G, GraphAttributes *GA, const pugi::xml_node rootTag)
 

Private Attributes

std::unordered_map< string, string > m_attrName
 
bool m_error
 
pugi::xml_node m_graphTag
 
std::unordered_map< string, nodem_nodeId
 
pugi::xml_document m_xml
 

Detailed Description

Definition at line 44 of file GraphMLParser.h.

Constructor & Destructor Documentation

◆ GraphMLParser()

ogdf::GraphMLParser::GraphMLParser ( std::istream &  in)
explicit

◆ ~GraphMLParser()

ogdf::GraphMLParser::~GraphMLParser ( )

Member Function Documentation

◆ read() [1/4]

bool ogdf::GraphMLParser::read ( Graph G)

◆ read() [2/4]

bool ogdf::GraphMLParser::read ( Graph G,
ClusterGraph C 
)

◆ read() [3/4]

bool ogdf::GraphMLParser::read ( Graph G,
ClusterGraph C,
ClusterGraphAttributes CA 
)

◆ read() [4/4]

bool ogdf::GraphMLParser::read ( Graph G,
GraphAttributes GA 
)

◆ readAttributes()

template<typename A , typename T >
bool ogdf::GraphMLParser::readAttributes ( A GA,
const T &  elem,
const pugi::xml_node  xmlElem 
)
inlineprivate

Definition at line 61 of file GraphMLParser.h.

◆ readClusters()

bool ogdf::GraphMLParser::readClusters ( Graph G,
ClusterGraph C,
ClusterGraphAttributes CA,
const cluster rootCluster,
const pugi::xml_node  clusterRoot 
)
private

◆ readData() [1/3]

bool ogdf::GraphMLParser::readData ( ClusterGraphAttributes CA,
const cluster c,
const pugi::xml_node  clusterData 
)
private

◆ readData() [2/3]

bool ogdf::GraphMLParser::readData ( GraphAttributes GA,
const edge e,
const pugi::xml_node  edgeData 
)
private

◆ readData() [3/3]

bool ogdf::GraphMLParser::readData ( GraphAttributes GA,
const node v,
const pugi::xml_node  nodeData 
)
private

◆ readEdges()

bool ogdf::GraphMLParser::readEdges ( Graph G,
GraphAttributes GA,
const pugi::xml_node  rootTag 
)
private

◆ readNodes()

bool ogdf::GraphMLParser::readNodes ( Graph G,
GraphAttributes GA,
const pugi::xml_node  rootTag 
)
private

Member Data Documentation

◆ m_attrName

std::unordered_map<string, string> ogdf::GraphMLParser::m_attrName
private

Definition at line 53 of file GraphMLParser.h.

◆ m_error

bool ogdf::GraphMLParser::m_error
private

Definition at line 77 of file GraphMLParser.h.

◆ m_graphTag

pugi::xml_node ogdf::GraphMLParser::m_graphTag
private

Definition at line 47 of file GraphMLParser.h.

◆ m_nodeId

std::unordered_map<string, node> ogdf::GraphMLParser::m_nodeId
private

Definition at line 50 of file GraphMLParser.h.

◆ m_xml

pugi::xml_document ogdf::GraphMLParser::m_xml
private

Definition at line 46 of file GraphMLParser.h.


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