CXXGraph
0.1.6
CXXGraph is a header only, that manages the Graphs and it's algorithm in C++
include
Utility
Writer.hpp
1
/***********************************************************/
2
/*** ______ ____ ______ _ ***/
3
/*** / ___\ \/ /\ \/ / ___|_ __ __ _ _ __ | |__ ***/
4
/*** | | \ / \ / | _| '__/ _` | '_ \| '_ \ ***/
5
/*** | |___ / \ / \ |_| | | | (_| | |_) | | | | ***/
6
/*** \____/_/\_\/_/\_\____|_| \__,_| .__/|_| |_| ***/
7
/*** |_| ***/
8
/***********************************************************/
9
/*** Header-Only C++ Library for Graph ***/
10
/*** Representation and Algorithms ***/
11
/***********************************************************/
12
/*** Author: ZigRazor ***/
13
/*** E-Mail: zigrazor@gmail.com ***/
14
/***********************************************************/
15
/*** Collaboration: ----------- ***/
16
/***********************************************************/
17
/*** License: AGPL v3.0 ***/
18
/***********************************************************/
19
20
#ifndef __WRITER_H__
21
#define __WRITER_H__
22
23
#pragma once
// This is to make sure that this header is only included once
24
25
namespace
CXXGRAPH
26
{
27
28
template
<
typename
T>
29
class
Graph;
30
35
template
<
typename
T>
36
class
Writer
37
{
38
public
:
48
virtual
int
writeGraph
(
const
Graph<T>
&graph, std::ofstream &file) = 0;
49
};
50
}
51
52
#endif
// __WRITER_H__
CXXGRAPH::Graph
Class that implement the Graph. ( This class is not Thread Safe )
Definition:
Graph.hpp:76
CXXGRAPH::Writer
Definition:
Writer.hpp:37
CXXGRAPH::Writer::writeGraph
virtual int writeGraph(const Graph< T > &graph, std::ofstream &file)=0
Function performs the writing of the Graph to the file.
Generated by
1.9.1