main page
namespaces
classes
files
GGL home
Generated on Wed Apr 29 2015 11:51:40 for GGL-4.1.2 by
doxygen
1.8.3.1
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
src
ggl
Graph_GML_writer.hh
Go to the documentation of this file.
1
#ifndef GGL_GRAPH_GML_WRITER_HH_
2
#define GGL_GRAPH_GML_WRITER_HH_
3
4
#include <iostream>
5
6
#include "
ggl/Graph.hh
"
7
8
9
namespace
ggl
10
{
11
12
13
/*! @brief Graph GML writer
14
*
15
* Algorithm wrapper class to write a GGL graph in GGL GML format to stream.
16
*
17
* @author Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/
18
*
19
*/
20
class
Graph_GML_writer
21
{
22
public
:
23
//! construction
24
Graph_GML_writer
();
25
//! destruction
26
~Graph_GML_writer
();
27
28
29
/*!
30
* Writes a boost graph in GGL GML format to stream.
31
*
32
* @param out the stream to write to
33
* @param graph the graph to print
34
* @param withSpaces if true newlines and whitespaces are used to write a
35
* user friendly and readable output, otherwise a one-line output
36
* with minimal space requirement is produced.
37
* @param additionalGML if non-NULL, the according string is added to
38
* the end of the graph GML encoding
39
*/
40
static
41
void
42
write
( std::ostream& out
43
,
const
Graph
& graph
44
,
const
bool
withSpaces =
true
45
,
const
std::string* additionalGML = NULL );
46
47
};
48
49
50
}
// namespace ggl
51
52
53
// include implementation
54
#include "ggl/Graph_GML_writer.icc"
55
56
#endif
/*GRAPH_GML_WRITER_HH_*/
57