ns3::GnuplotCollection Class Reference

a simple class to group together multiple gnuplots into one file, e.g. for PDF multi-page output terminals. More...

#include <gnuplot.h>

List of all members.

Public Member Functions

 GnuplotCollection (const std::string &outputFilename)
void SetTerminal (const std::string &terminal)
void AddPlot (const Gnuplot &plot)
GnuplotGetPlot (unsigned int id)
void GenerateOutput (std::ostream &os) const

Private Types

typedef std::vector< GnuplotPlots

Private Attributes

std::string m_outputFilename
std::string m_terminal
Plots m_plots

Detailed Description

a simple class to group together multiple gnuplots into one file, e.g. for PDF multi-page output terminals.

Definition at line 415 of file gnuplot.h.


Member Typedef Documentation

typedef std::vector<Gnuplot> ns3::GnuplotCollection::Plots [private]

Definition at line 450 of file gnuplot.h.


Constructor & Destructor Documentation

ns3::GnuplotCollection::GnuplotCollection ( const std::string &  outputFilename  ) 
Parameters:
outputFilename the name of the file where the rendering of the graph will be generated if you feed the command stream output by GnuplotCollection::GenerateOutput to the gnuplot program.

Definition at line 685 of file gnuplot.cc.


Member Function Documentation

void ns3::GnuplotCollection::AddPlot ( const Gnuplot plot  ) 
Parameters:
plot add a plot to the collection to be plotted.

Definition at line 698 of file gnuplot.cc.

void ns3::GnuplotCollection::GenerateOutput ( std::ostream &  os  )  const
Parameters:
os the output stream on which the relevant gnuplot commands should be generated.

Definition at line 713 of file gnuplot.cc.

Gnuplot & ns3::GnuplotCollection::GetPlot ( unsigned int  id  ) 

Return a pointer to one of the added plots.

Parameters:
id index of plot to return
Returns:
reference to plot, throws std::range_error if it does not exist.

Definition at line 704 of file gnuplot.cc.

void ns3::GnuplotCollection::SetTerminal ( const std::string &  terminal  ) 
Parameters:
terminal terminal setting string for output. The default terminal string is guessed from the output filename's extension.

Definition at line 692 of file gnuplot.cc.


Member Data Documentation

Definition at line 452 of file gnuplot.h.

Definition at line 455 of file gnuplot.h.

std::string ns3::GnuplotCollection::m_terminal [private]

Definition at line 453 of file gnuplot.h.


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:05 2009 for NS-3 by  doxygen 1.6.3