Fawkes API  Fawkes Development Version
fawkes::RRDGraphArea Class Reference

#include <>>

Inheritance diagram for fawkes::RRDGraphArea:

Public Member Functions

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

Detailed Description

Print graph area.

Author
Tim Niemueller

Definition at line 417 of file rrd_descriptions.h.

Constructor & Destructor Documentation

◆ RRDGraphArea() [1/2]

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 801 of file rrd_descriptions.cpp.

◆ RRDGraphArea() [2/2]

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

Copy ctor.

Parameters
otherinstance to copy

Definition at line 816 of file rrd_descriptions.cpp.

◆ ~RRDGraphArea()

fawkes::RRDGraphArea::~RRDGraphArea ( )
virtual

Destructor.

Definition at line 826 of file rrd_descriptions.cpp.

Member Function Documentation

◆ clone()

virtual RRDGraphElement* fawkes::RRDGraphArea::clone ( ) const
inlinevirtual

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 425 of file rrd_descriptions.h.

◆ get_color()

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

Get color string.

Returns
color string

Definition at line 442 of file rrd_descriptions.h.

◆ get_def_name()

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

Get definition name.

Returns
definition name

Definition at line 436 of file rrd_descriptions.h.

◆ get_legend()

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

Get legend label.

Returns
legend label

Definition at line 448 of file rrd_descriptions.h.

◆ get_stacked()

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

Get stacked flag.

Returns
true if line should be stacked, false otherwise.

Definition at line 454 of file rrd_descriptions.h.

◆ operator=()

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

Assignment operator.

Parameters
gmatching graph element to assign
Returns
reference to this instance

Definition at line 843 of file rrd_descriptions.cpp.

◆ to_string()

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 864 of file rrd_descriptions.cpp.


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