graph_analysis
Public Types | Public Member Functions | List of all members
graph_analysis::io::Writer Class Reference

Interface for Writer implementations that perform custom graph serialization. More...

#include <GraphIO.hpp>

Inheritance diagram for graph_analysis::io::Writer:
Inheritance graph
[legend]

Public Types

typedef shared_ptr< Writer > Ptr
 

Public Member Functions

virtual ~Writer ()
 
void write (const std::string &filename, const BaseGraph &graph) const
 
virtual void write (const std::string &filename, const BaseGraph::Ptr &graph) const
 

Detailed Description

Interface for Writer implementations that perform custom graph serialization.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ ~Writer()

virtual graph_analysis::io::Writer::~Writer ( )
inlinevirtual

Member Function Documentation

◆ write() [1/2]

void graph_analysis::io::Writer::write ( const std::string &  filename,
const BaseGraph &  graph 
) const

Write graph to a file

Parameters
filenameFilename to write to
graph

◆ write() [2/2]

virtual void graph_analysis::io::Writer::write ( const std::string &  filename,
const BaseGraph::Ptr &  graph 
) const
inlinevirtual

Subclasses have to implement this function in order to provide writing capability

Reimplemented in graph_analysis::io::GraphvizWriter, graph_analysis::io::YamlWriter, graph_analysis::io::GexfWriter, and graph_analysis::io::GraphMLWriter.


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