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

Detailed Description

Print string inside graph.

Author
Tim Niemueller

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

◆ RRDGraphGPrint() [2/2]

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

Copy constructor.

Parameters
otherinstance to copy

Definition at line 591 of file rrd_descriptions.cpp.

◆ ~RRDGraphGPrint()

fawkes::RRDGraphGPrint::~RRDGraphGPrint ( )
virtual

Destructor.

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

References fawkes::RRDDataSource::to_string().

◆ get_cf()

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

Get consolidation function type.

Returns
consolidation function type

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

◆ get_format()

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

Get format string.

Returns
format string

Definition at line 236 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 611 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 627 of file rrd_descriptions.cpp.

References fawkes::RRDArchive::cf_to_string().


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