CXXGraph  0.4.0
CXXGraph is a header only, that manages the Graphs and it's algorithm in C++
Public Member Functions | List of all members
CXXGRAPH::Writer< T > Class Template Referenceabstract

#include <Writer.hpp>

Public Member Functions

virtual int writeGraph (const Graph< T > &graph, std::ofstream &file)=0
 Function performs the writing of the Graph to the file. More...
 

Detailed Description

template<typename T>
class CXXGRAPH::Writer< T >

Interface to implement for a custom writer.

Member Function Documentation

◆ writeGraph()

template<typename T >
virtual int CXXGRAPH::Writer< T >::writeGraph ( const Graph< T > &  graph,
std::ofstream &  file 
)
pure virtual

Function performs the writing of the Graph to the file.

Parameters
graphThe graph to be written.
fileThe output file to be written.
Returns
a negative value if is impossible to write the graph from the file, else 0 if the graph is write successfully.

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