Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ util/

operations_research::GraphExporter Class Reference

Export to graph file. More...

#include <graph_export.h>

List of all members.

Public Types

enum  GraphFormat { DOT_FORMAT, GML_FORMAT }
 Supported graph formats. More...

Public Member Functions

virtual ~GraphExporter ()
virtual void WriteHeader (const string &name)=0
 Write the header of the graph file.
virtual void WriteFooter ()=0
 Write the footer of the graph file.
virtual void WriteNode (const string &name, const string &label, const string &shape, const string &color)=0
 Write node in GML or DOT format.
virtual void WriteLink (const string &source, const string &destination, const string &label)=0
 Adds one link in the generated graph.

Static Public Member Functions

static GraphExporterMakeFileExporter (File *const file, GraphExporter::GraphFormat format)
 Creates a graph exporter that will write to file with a given format.


Detailed Description

Export to graph file.

This class will allow the creation of a graph representation. It supports different formats (see GraphFormat).

Definition at line 30 of file graph_export.h.


Member Enumeration Documentation

Supported graph formats.

Enumerator:
DOT_FORMAT 
GML_FORMAT 

Definition at line 33 of file graph_export.h.


Constructor & Destructor Documentation

operations_research::GraphExporter::~GraphExporter (  )  [virtual]

Definition at line 23 of file graph_export.cc.


Member Function Documentation

virtual void operations_research::GraphExporter::WriteHeader ( const string &  name  )  [pure virtual]

Write the header of the graph file.

virtual void operations_research::GraphExporter::WriteFooter (  )  [pure virtual]

Write the footer of the graph file.

virtual void operations_research::GraphExporter::WriteNode ( const string &  name,
const string &  label,
const string &  shape,
const string &  color 
) [pure virtual]

Write node in GML or DOT format.

virtual void operations_research::GraphExporter::WriteLink ( const string &  source,
const string &  destination,
const string &  label 
) [pure virtual]

Adds one link in the generated graph.

GraphExporter * operations_research::GraphExporter::MakeFileExporter ( File *const   file,
GraphExporter::GraphFormat  format 
) [static]

Creates a graph exporter that will write to file with a given format.

namespace

Definition at line 173 of file graph_export.cc.


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