Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::gexf::Parser Class Reference

#include <ogdf/fileformats/GexfParser.h>

Public Member Functions

 Parser (std::istream &is)
 
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

bool init ()
 
bool readAttributes (GraphAttributes &GA, edge e, const pugi::xml_node edgeTag)
 
bool readAttributes (GraphAttributes &GA, node v, const pugi::xml_node nodeTag)
 
bool readCluster (Graph &G, ClusterGraph &C, ClusterGraphAttributes *CA, cluster rootCluster, const pugi::xml_node rootTag)
 
bool readEdges (Graph &G, ClusterGraph *C, GraphAttributes *GA)
 
bool readNodes (Graph &G, GraphAttributes *GA)
 

Static Private Member Functions

static void error (const pugi::xml_node tag, const std::string &msg)
 

Private Attributes

std::unordered_map< std::string, clusterm_clusterId
 
std::unordered_map< std::string, std::string > m_edgeAttr
 
pugi::xml_node m_edgesTag
 
pugi::xml_node m_graphTag
 
std::istream & m_is
 
std::unordered_map< std::string, std::string > m_nodeAttr
 
std::unordered_map< std::string, nodem_nodeId
 
pugi::xml_node m_nodesTag
 
pugi::xml_document m_xml
 

Detailed Description

Definition at line 50 of file GexfParser.h.

Constructor & Destructor Documentation

◆ Parser()

ogdf::gexf::Parser::Parser ( std::istream &  is)
explicit

Member Function Documentation

◆ error()

static void ogdf::gexf::Parser::error ( const pugi::xml_node  tag,
const std::string &  msg 
)
staticprivate

◆ init()

bool ogdf::gexf::Parser::init ( )
private

◆ read() [1/4]

bool ogdf::gexf::Parser::read ( Graph G)

◆ read() [2/4]

bool ogdf::gexf::Parser::read ( Graph G,
ClusterGraph C 
)

◆ read() [3/4]

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

◆ read() [4/4]

bool ogdf::gexf::Parser::read ( Graph G,
GraphAttributes GA 
)

◆ readAttributes() [1/2]

bool ogdf::gexf::Parser::readAttributes ( GraphAttributes GA,
edge  e,
const pugi::xml_node  edgeTag 
)
private

◆ readAttributes() [2/2]

bool ogdf::gexf::Parser::readAttributes ( GraphAttributes GA,
node  v,
const pugi::xml_node  nodeTag 
)
private

◆ readCluster()

bool ogdf::gexf::Parser::readCluster ( Graph G,
ClusterGraph C,
ClusterGraphAttributes CA,
cluster  rootCluster,
const pugi::xml_node  rootTag 
)
private

◆ readEdges()

bool ogdf::gexf::Parser::readEdges ( Graph G,
ClusterGraph C,
GraphAttributes GA 
)
private

◆ readNodes()

bool ogdf::gexf::Parser::readNodes ( Graph G,
GraphAttributes GA 
)
private

Member Data Documentation

◆ m_clusterId

std::unordered_map<std::string, cluster> ogdf::gexf::Parser::m_clusterId
private

Definition at line 58 of file GexfParser.h.

◆ m_edgeAttr

std::unordered_map<std::string, std::string> ogdf::gexf::Parser::m_edgeAttr
private

Definition at line 60 of file GexfParser.h.

◆ m_edgesTag

pugi::xml_node ogdf::gexf::Parser::m_edgesTag
private

Definition at line 55 of file GexfParser.h.

◆ m_graphTag

pugi::xml_node ogdf::gexf::Parser::m_graphTag
private

Definition at line 55 of file GexfParser.h.

◆ m_is

std::istream& ogdf::gexf::Parser::m_is
private

Definition at line 52 of file GexfParser.h.

◆ m_nodeAttr

std::unordered_map<std::string, std::string> ogdf::gexf::Parser::m_nodeAttr
private

Definition at line 60 of file GexfParser.h.

◆ m_nodeId

std::unordered_map<std::string, node> ogdf::gexf::Parser::m_nodeId
private

Definition at line 57 of file GexfParser.h.

◆ m_nodesTag

pugi::xml_node ogdf::gexf::Parser::m_nodesTag
private

Definition at line 55 of file GexfParser.h.

◆ m_xml

pugi::xml_document ogdf::gexf::Parser::m_xml
private

Definition at line 54 of file GexfParser.h.


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