Fawkes API  Fawkes Development Version
fawkes::RRDGraphLine Class Reference

#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
 
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...
 

Detailed Description

Print graph line.

Author
Tim Niemueller

Definition at line 355 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 705 of file rrd_descriptions.cpp.

◆ RRDGraphLine() [2/2]

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

Copy ctor.

Parameters
otherinstance to copy

Definition at line 722 of file rrd_descriptions.cpp.

◆ ~RRDGraphLine()

fawkes::RRDGraphLine::~RRDGraphLine ( )
virtual

Destructor.

Definition at line 733 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 367 of file rrd_descriptions.h.

◆ get_color()

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

Get color string.

Returns
color string

Definition at line 390 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 378 of file rrd_descriptions.h.

◆ get_legend()

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

Get legend label.

Returns
legend label

Definition at line 396 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 402 of file rrd_descriptions.h.

◆ get_width()

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

Get line width.

Returns
line width

Definition at line 384 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 750 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 772 of file rrd_descriptions.cpp.


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