23 #include "../graphs/GTS.h"
51 virtual shared_ptr<vector<graphs::Hypergraph_sp>>
readGXL(
string filename,
52 unordered_map<IDType,IDType>* oldIDs =
nullptr)
const = 0;
65 unordered_map<IDType,IDType>* oldRuleIDs =
nullptr,
66 unordered_map<IDType,IDType>* oldGraphIDs =
nullptr)
const = 0;
void setWarningsShown(bool show)
Sets whether warning will be logged when they occur.
Definition: GTXLReader.cpp:42
virtual graphs::GTS_sp readGTXL(string filename, unordered_map< IDType, IDType > *oldRuleIDs=nullptr, unordered_map< IDType, IDType > *oldGraphIDs=nullptr) const =0
This method takes a path to a GTXL XML-file and reads the stored GTS.
bool areWarningsShown()
Returns true, iff warnings will be logged when they occur.
Definition: GTXLReader.cpp:38
virtual shared_ptr< vector< graphs::Hypergraph_sp > > readGXL(string filename, unordered_map< IDType, IDType > *oldIDs=nullptr) const =0
This method takes a path to a GXL XML-file and reads all hypergraphs stored in it.
This class imports GXL or GTXL XML files and converts them to Hypergraph and GTS objects respectively...
Definition: GTXLReader.h:34
static unique_ptr< GTXLReader > newUniqueReader()
Use this method to generate a new GTXLReader object.
Definition: GTXLReader.cpp:30
GTXLReader()
The default constructor is hidden.
Definition: GTXLReader.cpp:34
unique_ptr< GTXLReader > GTXLReader_up
Alias for a unique pointer to a GTXLReader.
Definition: GTXLReader.h:112
virtual ~GTXLReader()
Destroys the GTXLReader object.
Definition: GTXLReader.cpp:36
bool showWarnings
Specifies whether warnings for ignored XML nodes and attributes should be displayed or not...
Definition: GTXLReader.h:105
shared_ptr< GTS > GTS_sp
Alias for a shared pointer to a GTS object.
Definition: GTS.h:164
static GTXLReader * newReader()
Use this method to generate a new GTXLReader object.
Definition: GTXLReader.cpp:26