Fawkes API  Fawkes Development Version
fawkes::RRDGraphGPrint Class Reference

#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
 
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 313 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 634 of file rrd_descriptions.cpp.

◆ RRDGraphGPrint() [2/2]

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

Copy constructor.

Parameters
otherinstance to copy

Definition at line 644 of file rrd_descriptions.cpp.

◆ ~RRDGraphGPrint()

fawkes::RRDGraphGPrint::~RRDGraphGPrint ( )
virtual

Destructor.

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

◆ get_cf()

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

Get consolidation function type.

Returns
consolidation function type

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

◆ get_format()

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

Get format string.

Returns
format string

Definition at line 344 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 665 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 683 of file rrd_descriptions.cpp.


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