Generated on Wed Apr 29 2015 11:51:40 for GGL-4.1.2 by doxygen 1.8.3.1
GS_stream.hh
Go to the documentation of this file.
1 #ifndef GGL_GS_STREAM_HH_
2 #define GGL_GS_STREAM_HH_
3 
4 #include "ggl/Graph.hh"
5 
6 #include "ggl/Graph_Storage.hh"
7 
8 #include <iostream>
9 
10 namespace ggl {
11 
12 
13 
14  /*! @brief Graph storage within output stream
15  *
16  * A ggl::Graph_Storage implementation that writes each added graph in string
17  * representation to a given stream.
18  *
19  * @author Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/
20  */
21  class GS_stream : public Graph_Storage
22  {
23 
24  protected:
25 
26  std::ostream & out;
27 
28  public:
29 
30  //! Construction
31  //! @param out the stream to write the graphs in text-form to
32  GS_stream( std::ostream & out );
33 
34  virtual
35  ~GS_stream();
36 
37 
38  //! Writes a given graph to stream.
39  //! @param graph the Graph object to write.
40  virtual
41  void
42  add( const Graph & graph );
43  };
44 
45 ////////////////////////////////////////////////////////////////////////////////
46 ////////////////////////////////////////////////////////////////////////////////
47 
48 
49 
50 } // namespace ggl
51 
52 #include "ggl/GS_stream.icc"
53 
54 #endif /*GS_STREAM_HH_*/