15 #include "pStatCollectorDef.h"
18 #include "datagramIterator.h"
30 _suggested_color.r = 0.0;
31 _suggested_color.g = 0.0;
32 _suggested_color.b = 0.0;
34 _suggested_scale = 0.0;
37 _active_explicitly_set =
false;
46 PStatCollectorDef(
int index,
const string &name) :
51 _suggested_color.r = 0.0;
52 _suggested_color.g = 0.0;
53 _suggested_color.b = 0.0;
55 _suggested_scale = 0.0;
58 _active_explicitly_set =
false;
71 _parent_index = parent._index;
72 _level_units = parent._level_units;
73 _suggested_scale = parent._suggested_scale;
74 _factor = parent._factor;
75 _is_active = parent._is_active;
76 _active_explicitly_set = parent._active_explicitly_set;
void set_parent(const PStatCollectorDef &parent)
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets th...
void add_string(const string &str)
Adds a variable-length string to the datagram.
void write_datagram(Datagram &destination) const
Writes the definition of the collectorDef to the datagram.
void add_float32(PN_float32 value)
Adds a 32-bit single-precision floating-point number to the datagram.
PN_int16 get_int16()
Extracts a signed 16-bit integer.
string get_string()
Extracts a variable-length string.
PN_float32 get_float32()
Extracts a 32-bit single-precision floating-point number.
void add_int16(PN_int16 value)
Adds a signed 16-bit integer to the datagram.
Records the version number of a particular client.
A class to retrieve the individual data elements previously stored in a Datagram. ...
Defines the details about the Collectors: the name, the suggested color, etc.
void read_datagram(DatagramIterator &source, PStatClientVersion *version)
Extracts the collectorDef definition from the datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...