Fawkes API  Fawkes Development Version
fawkes::RRDGraphLine Class Reference

Print graph line. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphLine:

List of all members.

Public Member Functions

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

Author:
Tim Niemueller

Constructor & Destructor Documentation

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

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

Copy ctor.

Parameters:
otherinstance to copy

Definition at line 662 of file rrd_descriptions.cpp.

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

Destructor.

Definition at line 671 of file rrd_descriptions.cpp.


Member Function Documentation

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

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

Get color string.

Returns:
color string

Definition at line 265 of file rrd_descriptions.h.

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

Get definition name.

Returns:
definition name

Definition at line 261 of file rrd_descriptions.h.

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

Get legend label.

Returns:
legend label

Definition at line 267 of file rrd_descriptions.h.

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

Get stacked flag.

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

Definition at line 269 of file rrd_descriptions.h.

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

Get line width.

Returns:
line width

Definition at line 263 of file rrd_descriptions.h.

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

Assignment operator.

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

Definition at line 685 of file rrd_descriptions.cpp.

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


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