#include <datatypes_AMOS.hh>
Inheritance diagram for AMOS::Distribution_t:
Public Member Functions | |
Distribution_t () | |
Constructs an empty Distribution_t object. | |
~Distribution_t () | |
Destroys a Distribution_t object. | |
void | clear () |
Clears all object data, reinitializes the object. | |
virtual NCode_t | getNCode () const |
Get the AMOS NCode type identifier. | |
virtual void | readMessage (const Message_t &msg) |
Reads in data from a Message object. | |
void | readRecord (std::istream &in) |
Read a binary record. | |
virtual void | writeMessage (Message_t &msg) const |
Writes data to a Message object. | |
void | writeRecord (std::ostream &out) const |
Write a binary record. | |
Public Attributes | |
Pos_t | mean |
the mean | |
SD_t | sd |
the standard deviation | |
Static Public Attributes | |
const NCode_t | NCODE = M_DISTRIBUTION |
The NCode type identifier for this object. |
Additional parameters may be added to this class if more complex distributions need to be represented. The contained parameters should suffice to represent normal distributions.
Definition at line 37 of file datatypes_AMOS.hh.
|
Constructs an empty Distribution_t object. Sets all members to 0 Definition at line 53 of file datatypes_AMOS.hh. References clear(). |
|
Destroys a Distribution_t object. Definition at line 62 of file datatypes_AMOS.hh. |
|
Clears all object data, reinitializes the object. Definition at line 71 of file datatypes_AMOS.hh. Referenced by Distribution_t(), readMessage(), and writeMessage(). |
|
Get the AMOS NCode type identifier.
Implements AMOS::IMessagable_t. Definition at line 78 of file datatypes_AMOS.hh. References AMOS::NCode_t. |
|
Reads in data from a Message object. Reads the data contained in a Message object and stores it in the Messagable object. Will not complain if incoming message is of the wrong type, will only try and suck out the fields it recognizes. All previous data in the Messagable object will be cleared or overwritten.
Implements AMOS::IMessagable_t. Definition at line 23 of file datatypes_AMOS.cc. References AMOS_THROW_ARGUMENT, clear(), AMOS::F_MEAN, AMOS::F_SD, mean, and sd. |
|
Read a binary record. Definition at line 51 of file datatypes_AMOS.cc. References mean, AMOS::readLE(), and sd. |
|
Writes data to a Message object. Writes the data contained in a Messagable object to a Message object. All previous data in the Message will be cleared or overwritten.
Implements AMOS::IMessagable_t. Definition at line 59 of file datatypes_AMOS.cc. References clear(), AMOS::F_MEAN, AMOS::F_SD, mean, AMOS::NULL_STRING, and sd. |
|
Write a binary record. Definition at line 91 of file datatypes_AMOS.cc. References mean, sd, and AMOS::writeLE(). |
|
the mean Definition at line 40 of file datatypes_AMOS.hh. Referenced by clear(), readMessage(), readRecord(), writeMessage(), and writeRecord(). |
|
The NCode type identifier for this object. Definition at line 19 of file datatypes_AMOS.cc. |
|
the standard deviation Definition at line 41 of file datatypes_AMOS.hh. Referenced by clear(), readMessage(), readRecord(), writeMessage(), and writeRecord(). |