Public Member Functions | Protected Attributes

JAUS::RegisterServices Class Reference

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>

Inheritance diagram for JAUS::RegisterServices:
JAUS::Message

List of all members.

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::SetGetServices ()
const Service::ID::SetGetServices () 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 MessageClone () 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
RegisterServicesoperator= (const RegisterServices &message)
 Sets equal to.

Protected Attributes

Service::ID::Set mServices

Detailed Description

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.


Constructor & Destructor Documentation

RegisterServices::RegisterServices ( const Address dest = Address(),
const Address src = Address() 
)

Constructor, initializes default values.

Parameters:
[in]srcSource ID of message sender.
[in]destDestination 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.


Member Function Documentation

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]
Returns:
True if the contents of the message will be larger than maximum payload size, otherwise false.

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.

Parameters:
[in]packetPacket containing message payload data to read.
Returns:
-1 on error, otherwise number of bytes written.

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.

Parameters:
[out]packetPacket to write payload to.
Returns:
-1 on error, otherwise number of bytes written.

Implements JAUS::Message.

Definition at line 92 of file registerservices.cpp.


Member Data Documentation

Definition at line 81 of file registerservices.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines