Fawkes API Fawkes Development Version
fawkes::RRDGraphGPrint Class Reference

Print string inside graph. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphGPrint:

Public Member Functions

 RRDGraphGPrint (const char *def_name, RRDArchive::ConsolidationFunction cf, const char *format)
 Constructor. More...
 
 RRDGraphGPrint (const RRDGraphGPrint &other)
 Copy constructor. More...
 
virtual ~RRDGraphGPrint ()
 Destructor. More...
 
RRDGraphGPrintoperator= (const RRDGraphGPrint &g)
 Assignment operator. More...
 
virtual RRDGraphElementclone () const
 Clone this element. More...
 
virtual const char * to_string () const
 Create string representation. More...
 
const char * get_def_name () const
 Get definition name. More...
 
RRDArchive::ConsolidationFunction get_cf () const
 Get consolidation function type. More...
 
const char * get_format () const
 Get format string. More...
 
virtual RRDGraphElementclone () const =0
 Clone this element. More...
 
virtual const char * to_string () const
 Create string representation. More...
 

Detailed Description

Print string inside graph.

Author
Tim Niemueller

Definition at line 307 of file rrd_descriptions.h.

Constructor & Destructor Documentation

◆ RRDGraphGPrint() [1/2]

fawkes::RRDGraphGPrint::RRDGraphGPrint ( const char *  def_name,
RRDArchive::ConsolidationFunction  cf,
const char *  format 
)

Constructor.

Parameters
def_nameData definition for this graph element.
cfconsolidation function to use
formatFormat string, cf. man rrdgraph_graph(1).

Definition at line 628 of file rrd_descriptions.cpp.

Referenced by clone().

◆ RRDGraphGPrint() [2/2]

fawkes::RRDGraphGPrint::RRDGraphGPrint ( const RRDGraphGPrint other)

Copy constructor.

Parameters
otherinstance to copy

Definition at line 638 of file rrd_descriptions.cpp.

◆ ~RRDGraphGPrint()

fawkes::RRDGraphGPrint::~RRDGraphGPrint ( )
virtual

Destructor.

Definition at line 644 of file rrd_descriptions.cpp.

Member Function Documentation

◆ clone()

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

References RRDGraphGPrint().

◆ get_cf()

RRDArchive::ConsolidationFunction fawkes::RRDGraphGPrint::get_cf ( ) const
inline

Get consolidation function type.

Returns
consolidation function type

Definition at line 332 of file rrd_descriptions.h.

◆ get_def_name()

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

Get definition name.

Returns
definition name

Definition at line 326 of file rrd_descriptions.h.

◆ get_format()

const char * fawkes::RRDGraphGPrint::get_format ( ) const
inline

Get format string.

Returns
format string

Definition at line 338 of file rrd_descriptions.h.

◆ operator=()

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

Assignment operator.

Parameters
gmatching graph element to assign
Returns
reference to this instance

Definition at line 659 of file rrd_descriptions.cpp.

◆ to_string()

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

Create string representation.

Returns
string suitable for rrd_graph_v().

Reimplemented from fawkes::RRDGraphElement.

Definition at line 677 of file rrd_descriptions.cpp.

References fawkes::RRDArchive::cf_to_string().


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