Fawkes API Fawkes Development Version
fawkes::RRDGraphLine Class Reference

Print graph line. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphLine:

Public Member Functions

 RRDGraphLine (const char *def_name, float width, const char *color, const char *legend, bool stacked=false)
 Constructor. More...
 
 RRDGraphLine (const RRDGraphLine &other)
 Copy ctor. More...
 
virtual ~RRDGraphLine ()
 Destructor. More...
 
virtual RRDGraphElementclone () const
 Clone this element. More...
 
RRDGraphLineoperator= (const RRDGraphLine &g)
 Assignment operator. More...
 
virtual const char * to_string () const
 Create string representation. More...
 
const char * get_def_name () const
 Get definition name. More...
 
float get_width () const
 Get line width. 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...
 
virtual RRDGraphElementclone () const =0
 Clone this element. More...
 
virtual const char * to_string () const
 Create string representation. More...
 

Detailed Description

Print graph line.

Author
Tim Niemueller

Definition at line 351 of file rrd_descriptions.h.

Constructor & Destructor Documentation

◆ RRDGraphLine() [1/2]

fawkes::RRDGraphLine::RRDGraphLine ( const char *  def_name,
float  width,
const char *  color,
const char *  legend,
bool  stacked = false 
)

Constructor.

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

Definition at line 701 of file rrd_descriptions.cpp.

Referenced by clone().

◆ RRDGraphLine() [2/2]

fawkes::RRDGraphLine::RRDGraphLine ( const RRDGraphLine other)

Copy ctor.

Parameters
otherinstance to copy

Definition at line 718 of file rrd_descriptions.cpp.

◆ ~RRDGraphLine()

fawkes::RRDGraphLine::~RRDGraphLine ( )
virtual

Destructor.

Definition at line 729 of file rrd_descriptions.cpp.

Member Function Documentation

◆ clone()

virtual RRDGraphElement * fawkes::RRDGraphLine::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 363 of file rrd_descriptions.h.

References RRDGraphLine().

◆ get_color()

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

Get color string.

Returns
color string

Definition at line 386 of file rrd_descriptions.h.

◆ get_def_name()

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

Get definition name.

Returns
definition name

Definition at line 374 of file rrd_descriptions.h.

◆ get_legend()

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

Get legend label.

Returns
legend label

Definition at line 392 of file rrd_descriptions.h.

◆ get_stacked()

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

Get stacked flag.

Returns
true if line should be stacked, false otherwise.

Definition at line 398 of file rrd_descriptions.h.

◆ get_width()

float fawkes::RRDGraphLine::get_width ( ) const
inline

Get line width.

Returns
line width

Definition at line 380 of file rrd_descriptions.h.

◆ operator=()

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

Assignment operator.

Parameters
gmatching graph element to assign
Returns
reference to this instance

Definition at line 746 of file rrd_descriptions.cpp.

◆ to_string()

const char * fawkes::RRDGraphLine::to_string ( ) const
virtual

Create string representation.

Returns
string suitable for rrd_graph_v().

Reimplemented from fawkes::RRDGraphElement.

Definition at line 768 of file rrd_descriptions.cpp.


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