This message allows a component to publish its capabilities, according to the Service Dictionary presented. If a component ID is specified in the RA, it may report only one service beyond the core message support, and this service must be equal to the component ID. If a component ID is not listed in the RA, it can report any number of services. More...
#include <registerservices.h>
Public Member Functions | |
RegisterServices (const Address &dest=Address(), const Address &src=Address()) | |
Constructor, initializes default values. | |
RegisterServices (const RegisterServices &message) | |
Copy constructor. | |
~RegisterServices () | |
Destructor. | |
Service::ID::Set * | GetServices () |
const Service::ID::Set * | GetServices () const |
virtual bool | IsCommand () const |
virtual int | WriteMessageBody (Packet &packet) const |
Writes message payload to the packet. | |
virtual int | ReadMessageBody (const Packet &packet) |
Reads message payload from the packet. | |
virtual Message * | Clone () const |
virtual UInt | GetPresenceVector () const |
virtual UInt | GetPresenceVectorSize () const |
virtual UInt | GetPresenceVectorMask () const |
virtual UShort | GetMessageCodeOfResponse () const |
virtual std::string | GetMessageName () const |
virtual void | ClearMessageBody () |
Clears message payload data. | |
virtual bool | IsLargeDataSet (const unsigned int maxPayloadSize) const |
RegisterServices & | operator= (const RegisterServices &message) |
Sets equal to. | |
Protected Attributes | |
Service::ID::Set | mServices |
This message allows a component to publish its capabilities, according to the Service Dictionary presented. If a component ID is specified in the RA, it may report only one service beyond the core message support, and this service must be equal to the component ID. If a component ID is not listed in the RA, it can report any number of services.
Definition at line 60 of file registerservices.h.
RegisterServices::RegisterServices | ( | const Address & | dest = Address() , |
const Address & | src = Address() |
||
) |
Constructor, initializes default values.
[in] | src | Source ID of message sender. |
[in] | dest | Destination ID of message. |
Definition at line 53 of file registerservices.cpp.
RegisterServices::RegisterServices | ( | const RegisterServices & | message ) |
Copy constructor.
Definition at line 64 of file registerservices.cpp.
RegisterServices::~RegisterServices | ( | ) |
Destructor.
Definition at line 75 of file registerservices.cpp.
void RegisterServices::ClearMessageBody | ( | ) | [virtual] |
Clears message payload data.
Implements JAUS::Message.
Definition at line 142 of file registerservices.cpp.
virtual Message* JAUS::RegisterServices::Clone | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 71 of file registerservices.h.
virtual UShort JAUS::RegisterServices::GetMessageCodeOfResponse | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 75 of file registerservices.h.
virtual std::string JAUS::RegisterServices::GetMessageName | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 76 of file registerservices.h.
virtual UInt JAUS::RegisterServices::GetPresenceVector | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 72 of file registerservices.h.
virtual UInt JAUS::RegisterServices::GetPresenceVectorMask | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 74 of file registerservices.h.
virtual UInt JAUS::RegisterServices::GetPresenceVectorSize | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 73 of file registerservices.h.
const Service::ID::Set* JAUS::RegisterServices::GetServices | ( | ) | const [inline] |
Definition at line 67 of file registerservices.h.
Service::ID::Set* JAUS::RegisterServices::GetServices | ( | ) | [inline] |
Definition at line 66 of file registerservices.h.
virtual bool JAUS::RegisterServices::IsCommand | ( | ) | const [inline, virtual] |
Implements JAUS::Message.
Definition at line 68 of file registerservices.h.
bool RegisterServices::IsLargeDataSet | ( | const unsigned int | maxPayloadSize ) | const [virtual] |
Implements JAUS::Message.
Definition at line 154 of file registerservices.cpp.
RegisterServices & RegisterServices::operator= | ( | const RegisterServices & | message ) |
Sets equal to.
Definition at line 173 of file registerservices.cpp.
int RegisterServices::ReadMessageBody | ( | const Packet & | packet ) | [virtual] |
Reads message payload from the packet.
Message contents are read from the packet following the JAUS standard.
[in] | packet | Packet containing message payload data to read. |
Implements JAUS::Message.
Definition at line 120 of file registerservices.cpp.
int RegisterServices::WriteMessageBody | ( | Packet & | packet ) | const [virtual] |
Writes message payload to the packet.
Message contents are written to the packet following the JAUS standard.
[out] | packet | Packet to write payload to. |
Implements JAUS::Message.
Definition at line 92 of file registerservices.cpp.
Service::ID::Set JAUS::RegisterServices::mServices [protected] |
Definition at line 81 of file registerservices.h.