Defines the details about the Collectors: the name, the suggested color, etc. More...
#include "pStatCollectorDef.h"
Classes | |
struct | ColorDef |
Public Member Functions | |
PStatCollectorDef (int index, const std::string &name) | |
void | read_datagram (DatagramIterator &source, PStatClientVersion *version) |
Extracts the collectorDef definition from the datagram. More... | |
void | set_parent (const PStatCollectorDef &parent) |
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets the parent of the CollectorDef and inherits whatever properties are appropriate. More... | |
void | write_datagram (Datagram &destination) const |
Writes the definition of the collectorDef to the datagram. More... | |
Public Attributes | |
bool | _active_explicitly_set |
double | _factor |
int | _index |
bool | _is_active |
std::string | _level_units |
std::string | _name |
int | _parent_index |
int | _sort |
ColorDef | _suggested_color |
double | _suggested_scale |
Defines the details about the Collectors: the name, the suggested color, etc.
Definition at line 29 of file pStatCollectorDef.h.
void PStatCollectorDef::read_datagram | ( | DatagramIterator & | source, |
PStatClientVersion * | version | ||
) |
Extracts the collectorDef definition from the datagram.
Definition at line 92 of file pStatCollectorDef.cxx.
References DatagramIterator::get_float32(), DatagramIterator::get_int16(), and DatagramIterator::get_string().
void PStatCollectorDef::set_parent | ( | const PStatCollectorDef & | parent | ) |
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets the parent of the CollectorDef and inherits whatever properties are appropriate.
Definition at line 62 of file pStatCollectorDef.cxx.
void PStatCollectorDef::write_datagram | ( | Datagram & | destination | ) | const |
Writes the definition of the collectorDef to the datagram.
Definition at line 75 of file pStatCollectorDef.cxx.
References Datagram::add_float32(), Datagram::add_int16(), and Datagram::add_string().