23 #include "../graphs/GTS.h"
25 #include <boost/filesystem.hpp>
49 virtual void writeGXL(vector<graphs::Hypergraph_sp>
const& graphs,
string filename)
const;
57 virtual void writeGXL(vector<graphs::Hypergraph_sp>
const& graphs, boost::filesystem::path& filename)
const = 0;
virtual ~GTXLWriter()
Destroys the GTXLWriter object.
Definition: GTXLWriter.cpp:39
static unique_ptr< GTXLWriter > newUniqueWriter()
Use this method to generate a new GTXLWriter object.
Definition: GTXLWriter.cpp:33
void setRuleIDStorage(bool value)
Sets whether internal rule IDs should be stores in the resulting file.
Definition: GTXLWriter.cpp:70
virtual void writeGXL(vector< graphs::Hypergraph_sp > const &graphs, string filename) const
This method takes a collection of Hypergraphs and stores the collection as a GXL XML-file with the gi...
Definition: GTXLWriter.cpp:41
This class exports GXL or GTXL XML files by converting them from Hypergraph and GTS objects respectiv...
Definition: GTXLWriter.h:34
static GTXLWriter * newWriter()
Use this method to generate a new GTXLWriter object.
Definition: GTXLWriter.cpp:29
bool storeGraphIDs
A value of true will cause the internally used ID of a graph to be stored as its name in the exported...
Definition: GTXLWriter.h:139
void setGraphIDStorage(bool value)
Sets whether the graph IDs used internally will be stored in the resulting file.
Definition: GTXLWriter.cpp:62
bool getRuleIDStorage() const
Returns whether internal rule IDs will be exported.
Definition: GTXLWriter.cpp:74
The GTS class is the data structure for a graph transformation system.
Definition: GTS.h:36
bool storeRuleIDs
A value of true will cause the internally used ID of a rule to be stored as its name in the exported ...
Definition: GTXLWriter.h:145
virtual void writeGTXL(graphs::GTS const >s, string filename) const
This method takes a GTS object and stores it as a GTXL XML-file with the given filename.
Definition: GTXLWriter.cpp:57
GTXLWriter()
The default constructor is hidden.
Definition: GTXLWriter.cpp:37
shared_ptr< Hypergraph > Hypergraph_sp
Alias for a shared pointer to a Hypergraph.
Definition: Hypergraph.h:85
bool getGraphIDStorage() const
Returns whether internal graph IDs will be exported.
Definition: GTXLWriter.cpp:66