Fawkes API  Fawkes Development Version
fawkes::RRDGraphElement Class Referenceabstract

Interface for graph elements. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphElement:

Public Member Functions

virtual RRDGraphElementclone () const =0
 Clone this element. More...
 
virtual const char * to_string () const
 Create string representation. More...
 

Detailed Description

Interface for graph elements.

This super class provides the general interface for the different existing graph elements.

Author
Tim Niemueller

Definition at line 208 of file rrd_descriptions.h.

Member Function Documentation

◆ clone()

RRDGraphElement * fawkes::RRDGraphElement::clone ( ) const
pure 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

Implemented in fawkes::RRDGraphArea, fawkes::RRDGraphLine, and fawkes::RRDGraphGPrint.

◆ to_string()

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

Create string representation.

Returns
string suitable for rrd_graph_v().

Reimplemented in fawkes::RRDGraphArea, fawkes::RRDGraphLine, and fawkes::RRDGraphGPrint.

Definition at line 563 of file rrd_descriptions.cpp.


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