Fawkes API  Fawkes Development Version
fawkes::RRDGraphArea Class Reference

Print graph area. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphArea:

List of all members.

Public Member Functions

 RRDGraphArea (const char *def_name, const char *color, const char *legend, bool stacked=false)
 Constructor.
 RRDGraphArea (const RRDGraphArea &other)
 Copy ctor.
virtual ~RRDGraphArea ()
 Destructor.
virtual RRDGraphElementclone () const
 Clone this element.
RRDGraphAreaoperator= (const RRDGraphArea &g)
 Assignment operator.
virtual const char * to_string () const
 Create string representation.
const char * get_def_name () const
 Get definition name.
const char * get_color () const
 Get color string.
const char * get_legend () const
 Get legend label.
bool get_stacked () const
 Get stacked flag.

Detailed Description

Print graph area.

Author:
Tim Niemueller

Constructor & Destructor Documentation

fawkes::RRDGraphArea::RRDGraphArea ( const char *  def_name,
const char *  color,
const char *  legend,
bool  stacked = false 
)

Constructor.

Parameters:
def_nameData definition for this graph element.
colorcolor hash string (HTML style, e.g. FF0000)
legendlegend string
stackedtrue to stack on previous graph element

Definition at line 728 of file rrd_descriptions.cpp.

fawkes::RRDGraphArea::RRDGraphArea ( const RRDGraphArea other)

Copy ctor.

Parameters:
otherinstance to copy

Definition at line 739 of file rrd_descriptions.cpp.

fawkes::RRDGraphArea::~RRDGraphArea ( ) [virtual]

Destructor.

Definition at line 747 of file rrd_descriptions.cpp.


Member Function Documentation

virtual RRDGraphElement* fawkes::RRDGraphArea::clone ( ) const [inline, virtual]

Clone this element.

The clone function is needed to copy an object without knowing its type and therefore without calling its copy constructor.

Returns:
new copied instance

Implements fawkes::RRDGraphElement.

Definition at line 289 of file rrd_descriptions.h.

const char* fawkes::RRDGraphArea::get_color ( ) const [inline]

Get color string.

Returns:
color string

Definition at line 298 of file rrd_descriptions.h.

const char* fawkes::RRDGraphArea::get_def_name ( ) const [inline]

Get definition name.

Returns:
definition name

Definition at line 296 of file rrd_descriptions.h.

const char* fawkes::RRDGraphArea::get_legend ( ) const [inline]

Get legend label.

Returns:
legend label

Definition at line 300 of file rrd_descriptions.h.

bool fawkes::RRDGraphArea::get_stacked ( ) const [inline]

Get stacked flag.

Returns:
true if line should be stacked, false otherwise.

Definition at line 302 of file rrd_descriptions.h.

RRDGraphArea & fawkes::RRDGraphArea::operator= ( const RRDGraphArea g)

Assignment operator.

Parameters:
gmatching graph element to assign
Returns:
reference to this instance

Definition at line 761 of file rrd_descriptions.cpp.

const char * fawkes::RRDGraphArea::to_string ( ) const [virtual]

Create string representation.

Returns:
string suitable for rrd_graph_v().

Reimplemented from fawkes::RRDGraphElement.

Definition at line 779 of file rrd_descriptions.cpp.


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