#include <iso_com_message.h>
Public Member Functions | |
Message () | |
default constructor | |
Message (const Message &pMessage) | |
copy constructor | |
~Message () | |
destructor | |
const Message & | operator= (const Message &pMessage) |
assignment operator | |
unsigned int | valueGroupCount () const |
return number of value groups | |
const MessageValueGroup & | valueGroup (unsigned int pValueGroupIndex) const throw (ComException) |
return message value group | |
const QVector< MessageValueGroup * > & | valueGroups () const |
return message value groups | |
unsigned int | valueCount (unsigned int pValueGroupIndex) const |
return number of values in value group | |
template<class Type> | |
bool | checkValues (unsigned int pValueGroupIndex) const |
check values | |
template<class Type, int ValueCount> | |
bool | checkValues (unsigned int pValueGroupIndex) const |
check values | |
template<class Type> | |
const Type * | values (unsigned int pValueGroupIndex) const throw (ComException) |
return values | |
template<class Type> | |
void | addValues (unsigned int pValueCount, Type *pValues) |
add values | |
void | addValues (MessageValueGroup *pValueGroup) |
add value group | |
void | removeValues (unsigned int pValueGroupIndex) throw (ComException) |
remove values | |
void | clear () |
remove and deleted all value groups | |
base::String | info () const |
print textual message information | |
Protected Attributes | |
QVector< MessageValueGroup * > | mValueGroups |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Message &pMessage) |
print message information |
iso::com::Message::Message | ( | ) |
default constructor
iso::com::Message::Message | ( | const Message & | pMessage | ) |
copy constructor
pMessage | message to copy |
iso::com::Message::~Message | ( | ) |
destructor
assignment operator
pMessage | message to copy value groups from |
unsigned int iso::com::Message::valueGroupCount | ( | ) | const |
return number of value groups
const MessageValueGroup& iso::com::Message::valueGroup | ( | unsigned int | pValueGroupIndex | ) | const throw (ComException) |
return message value group
pValueGroupIndex | value group index |
ComException | value group index out of bounds |
const QVector< MessageValueGroup* >& iso::com::Message::valueGroups | ( | ) | const |
return message value groups
unsigned int iso::com::Message::valueCount | ( | unsigned int | pValueGroupIndex | ) | const |
return number of values in value group
pValueGroupIndex | value group index |
ComException | value group index out of bounds |
bool iso::com::Message::checkValues | ( | unsigned int | pValueGroupIndex | ) | const |
check values
pValueGroupIndex | value group index |
ComException | value group index out of bounds |
bool iso::com::Message::checkValues | ( | unsigned int | pValueGroupIndex | ) | const |
check values
pValueGroupIndex | value group index |
ComException | value group index out of bounds |
const Type* iso::com::Message::values | ( | unsigned int | pValueGroupIndex | ) | const throw (ComException) |
return values
pValueGroupIndex | value group index |
ComException | value group index out of bounds or type mismatch |
void iso::com::Message::addValues | ( | unsigned int | pValueCount, | |
Type * | pValues | |||
) |
add values
pValueCount | number of values | |
pValues | values |
void iso::com::Message::addValues | ( | MessageValueGroup * | pValueGroup | ) |
add value group
pValueGroup | value group |
void iso::com::Message::removeValues | ( | unsigned int | pValueGroupIndex | ) | throw (ComException) |
remove values
pValueGroupIndex | index of value group |
index | out of bounds |
void iso::com::Message::clear | ( | ) |
remove and deleted all value groups
base::String iso::com::Message::info | ( | ) | const |
print textual message information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Message & | pMessage | |||
) | [friend] |
print message information
pOstream | output stream | |
pMessage | message |
QVector< MessageValueGroup* > iso::com::Message::mValueGroups [protected] |