Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::RRDGraphGPrint Class Reference

Print string inside graph. More...

#include <>>

Inheritance diagram for fawkes::RRDGraphGPrint:

List of all members.

Public Member Functions

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

Detailed Description

Print string inside graph.

Author:
Tim Niemueller

Definition at line 217 of file rrd_descriptions.h.


Constructor & Destructor Documentation

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.

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

Copy constructor.

Parameters:
otherinstance to copy

Definition at line 591 of file rrd_descriptions.cpp.

fawkes::RRDGraphGPrint::~RRDGraphGPrint ( )
virtual

Destructor.

Definition at line 599 of file rrd_descriptions.cpp.


Member Function Documentation

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.

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.

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

Get definition name.

Returns:
definition name

Definition at line 232 of file rrd_descriptions.h.

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

Get format string.

Returns:
format string

Definition at line 236 of file rrd_descriptions.h.

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.

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: