evio
6.0
|
This class is used to provide all data when constructing a CompositeData object. More...
#include <CompositeData.h>
Public Member Functions | |
Data () | |
Constructor. More... | |
void | setFormatTag (uint16_t tag) |
This method sets the tag in the segment containing the format string. More... | |
void | setDataTag (uint16_t tag) |
This method sets the tag in the bank containing the data. More... | |
void | setDataNum (uint8_t num) |
This method sets the num in the bank containing the data. More... | |
uint16_t | getFormatTag () const |
This method gets the tag in the segment containing the format string. More... | |
uint16_t | getDataTag () const |
This method gets the tag in the bank containing the data. More... | |
uint8_t | getDataNum () const |
This method gets the num in the bank containing the data. More... | |
uint32_t | getDataSize () const |
This method gets the raw data size in bytes. More... | |
uint32_t | getPadding () const |
This method gets the padding (in bytes). More... | |
void | addN (uint32_t N) |
This method adds an "N" or multiplier value to the data. More... | |
void | addn (uint16_t n) |
This method adds an "n" or multiplier value to the data. More... | |
void | addm (uint8_t m) |
This method adds an "m" or multiplier value to the data. More... | |
void | addInt (int32_t i) |
Add a signed 32 bit integer to the data. More... | |
void | addInt (std::vector< int32_t > const &i) |
Add an vector of signed 32 bit integers to the data. More... | |
void | addUint (uint32_t i) |
Add an unsigned 32 bit integer to the data. More... | |
void | addUint (std::vector< uint32_t > const &i) |
Add an vector of unsigned 32 bit integers to the data. More... | |
void | addShort (int16_t s) |
Add a 16 bit short to the data. More... | |
void | addShort (std::vector< int16_t > const &s) |
Add an vector of 16 bit shorts to the data. More... | |
void | addUShort (uint16_t s) |
Add an unsigned 16 bit short to the data. More... | |
void | addUShort (std::vector< uint16_t > const &s) |
Add an vector of unsigned 16 bit shorts to the data. More... | |
void | addLong (int64_t l) |
Add a 64 bit long to the data. More... | |
void | addLong (std::vector< int64_t > const &l) |
Add an vector of 64 bit longs to the data. More... | |
void | addULong (uint64_t l) |
Add an unsigned 64 bit long to the data. More... | |
void | addULong (std::vector< uint64_t > const &l) |
Add an vector of unsigned 64 bit longs to the data. More... | |
void | addChar (int8_t b) |
Add an 8 bit byte (char) to the data. More... | |
void | addChar (std::vector< int8_t > const &b) |
Add an vector of 8 bit bytes (chars) to the data. More... | |
void | addUChar (uint8_t b) |
Add an unsigned 8 bit byte (uchar) to the data. More... | |
void | addUChar (std::vector< uint8_t > const &b) |
Add an vector of unsigned 8 bit bytes (uchars) to the data. More... | |
void | addFloat (float f) |
Add a 32 bit float to the data. More... | |
void | addFloat (std::vector< float > const &f) |
Add an vector of 32 bit floats to the data. More... | |
void | addDouble (double d) |
Add a 64 bit double to the data. More... | |
void | addDouble (std::vector< double > const &d) |
Add an vector of 64 bit doubles to the data. More... | |
void | addString (std::string const &s) |
Add a single string to the data. More... | |
void | addString (std::vector< std::string > const &s) |
Add an vector of strings to the data. More... | |
Friends | |
class | CompositeData |
Encapsulating class needs access. More... | |
This class is used to provide all data when constructing a CompositeData object.
Doing things this way keeps all internal data members self-consistent.
|
inline |
Constructor.
|
inline |
Add an 8 bit byte (char) to the data.
b | byte to add. |
References evio::CompositeData::SingleMember::b8, evio::DataType::CHAR8, and evio::CompositeData::DataItem::item.
|
inline |
Add an vector of 8 bit bytes (chars) to the data.
b | vector of bytes to add. |
References evio::CompositeData::SingleMember::b8, evio::DataType::CHAR8, and evio::CompositeData::DataItem::item.
|
inline |
Add a 64 bit double to the data.
d | double to add. |
References evio::CompositeData::SingleMember::dbl, evio::DataType::DOUBLE64, and evio::CompositeData::DataItem::item.
|
inline |
Add an vector of 64 bit doubles to the data.
d | vector of doubles to add. |
References evio::CompositeData::SingleMember::dbl, evio::DataType::DOUBLE64, and evio::CompositeData::DataItem::item.
|
inline |
Add a 32 bit float to the data.
f | float to add. |
References evio::DataType::FLOAT32, evio::CompositeData::SingleMember::flt, and evio::CompositeData::DataItem::item.
|
inline |
Add an vector of 32 bit floats to the data.
f | vector of floats to add. |
References evio::DataType::FLOAT32, evio::CompositeData::SingleMember::flt, and evio::CompositeData::DataItem::item.
|
inline |
Add a signed 32 bit integer to the data.
i | integer to add. |
References evio::CompositeData::SingleMember::i32, evio::DataType::INT32, and evio::CompositeData::DataItem::item.
|
inline |
Add an vector of signed 32 bit integers to the data.
i | vector of integers to add. |
References evio::CompositeData::SingleMember::i32, evio::DataType::INT32, and evio::CompositeData::DataItem::item.
|
inline |
Add a 64 bit long to the data.
l | long to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::l64, and evio::DataType::LONG64.
|
inline |
Add an vector of 64 bit longs to the data.
l | vector of longs to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::l64, and evio::DataType::LONG64.
|
inline |
This method adds an "m" or multiplier value to the data.
It needs to be added in sequence with other data.
m | m or multiplier value |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ub8, and evio::DataType::UCHAR8.
|
inline |
This method adds an "N" or multiplier value to the data.
It needs to be added in sequence with other data.
N | N or multiplier value |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ui32, and evio::DataType::UINT32.
|
inline |
This method adds an "n" or multiplier value to the data.
It needs to be added in sequence with other data.
n | n or multiplier value |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::us16, and evio::DataType::USHORT16.
|
inline |
Add a 16 bit short to the data.
s | short to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::s16, and evio::DataType::SHORT16.
|
inline |
Add an vector of 16 bit shorts to the data.
s | vector of shorts to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::s16, and evio::DataType::SHORT16.
|
inline |
Add a single string to the data.
s | string to add. |
References evio::DataType::CHARSTAR8, evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::str, evio::Util::stringsToRawSize(), and evio::CompositeData::DataItem::strVec.
|
inline |
Add an vector of strings to the data.
s | vector of strings to add. |
References evio::DataType::CHARSTAR8, evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::str, evio::Util::stringsToRawSize(), and evio::CompositeData::DataItem::strVec.
|
inline |
Add an unsigned 8 bit byte (uchar) to the data.
b | unsigned byte to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ub8, and evio::DataType::UCHAR8.
|
inline |
Add an vector of unsigned 8 bit bytes (uchars) to the data.
b | vector of unsigned bytes to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ub8, and evio::DataType::UCHAR8.
|
inline |
Add an unsigned 32 bit integer to the data.
i | unsigned integer to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ui32, and evio::DataType::UINT32.
|
inline |
Add an vector of unsigned 32 bit integers to the data.
i | vector of unsigned integers to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ui32, and evio::DataType::UINT32.
|
inline |
Add an unsigned 64 bit long to the data.
l | unsigned long to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ul64, and evio::DataType::ULONG64.
|
inline |
Add an vector of unsigned 64 bit longs to the data.
l | vector of unsigned longs to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::ul64, and evio::DataType::ULONG64.
|
inline |
Add an unsigned 16 bit short to the data.
s | unsigned short to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::us16, and evio::DataType::USHORT16.
|
inline |
Add an vector of unsigned 16 bit shorts to the data.
s | vector of unsigned shorts to add. |
References evio::CompositeData::DataItem::item, evio::CompositeData::SingleMember::us16, and evio::DataType::USHORT16.
|
inline |
This method gets the num in the bank containing the data.
|
inline |
This method gets the raw data size in bytes.
|
inline |
This method gets the tag in the bank containing the data.
|
inline |
This method gets the tag in the segment containing the format string.
|
inline |
This method gets the padding (in bytes).
|
inline |
This method sets the num in the bank containing the data.
num | num in bank containing the data. |
|
inline |
This method sets the tag in the bank containing the data.
tag | tag in bank containing the data. |
|
inline |
This method sets the tag in the segment containing the format string.
tag | tag in segment containing the format string. |
|
friend |
Encapsulating class needs access.