Pulsar::PlotFactory Class Reference

Provides a text interface to create new plots. More...

#include <PlotFactory.h>

Public Member Functions

 PlotFactory ()
 Default constructor loads up all of the plot types.
 
Plotconstruct (std::string name)
 Return a new instance of the named plot. More...
 
unsigned get_nplot ()
 Return the number of plots.
 
std::string get_name (unsigned i)
 Return the name of the ith plot. More...
 
std::string get_description (unsigned i)
 Return the name of the ith plot. More...
 
std::string help ()
 Return a descriptive list of the available plots.
 
void add (Agent *agent)
 Add a plot.
 

Protected Attributes

std::vector< Agent * > agents
 

Detailed Description

Provides a text interface to create new plots.

Member Function Documentation

◆ construct()

Pulsar::Plot * Pulsar::PlotFactory::construct ( std::string  name)

Return a new instance of the named plot.

Return a new instance of the named plotter.

◆ get_description()

std::string Pulsar::PlotFactory::get_description ( unsigned  i)

Return the name of the ith plot.

Return the name of the ith agent.

◆ get_name()

std::string Pulsar::PlotFactory::get_name ( unsigned  i)

Return the name of the ith plot.

Return the name of the ith agent.


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

Generated using doxygen 1.8.17