Public Member Functions | Protected Member Functions | Private Attributes | List of all members
swarmros::introspection::Message Class Reference

Message is the base class for message types supported by the introspection library. More...

#include <Message.h>

Inheritance diagram for swarmros::introspection::Message:
Inheritance graph
[legend]

Public Member Functions

void EraseType ()
 Erase type information from message. More...
 
const std_msgs::HeaderGetHeader () const
 Get a reference to the header. More...
 
std_msgs::HeaderGetMutableHeader ()
 Get a mutable reference to the header. More...
 
const MessageSerializerGetSerializer () const
 Get the associated serializer. More...
 
const std::string & GetType () const
 Get the fully qualified type of the message. More...
 
void SetType (const std::string &type)
 Set the type of the object and fetch its serializer. More...
 

Protected Member Functions

 Message ()
 Construct an empty Message instance. More...
 
 Message (const std::string &type)
 Build an Message instance for a specific type. More...
 

Private Attributes

std_msgs::Header _header
 Header. More...
 
const MessageSerializer_serializer
 Reference to the serializer used to construct this message. More...
 
std::string _type
 ROS type. More...
 

Detailed Description

Message is the base class for message types supported by the introspection library.

Definition at line 16 of file Message.h.

Constructor & Destructor Documentation

swarmros::introspection::Message::Message ( )
inlineprotected

Construct an empty Message instance.

Definition at line 45 of file Message.h.

swarmros::introspection::Message::Message ( const std::string &  type)
inlineprotected

Build an Message instance for a specific type.

Parameters
typeROS type

Definition at line 53 of file Message.h.

Member Function Documentation

void swarmros::introspection::Message::EraseType ( )
inline

Erase type information from message.

Definition at line 87 of file Message.h.

const std_msgs::Header& swarmros::introspection::Message::GetHeader ( ) const
inline

Get a reference to the header.

Returns
const std_msgs::Header&

Definition at line 108 of file Message.h.

std_msgs::Header& swarmros::introspection::Message::GetMutableHeader ( )
inline

Get a mutable reference to the header.

Returns
std_msgs::Header&

Definition at line 118 of file Message.h.

const MessageSerializer* swarmros::introspection::Message::GetSerializer ( ) const
inline

Get the associated serializer.

Returns
const MessageSerializer*

Definition at line 98 of file Message.h.

const std::string& swarmros::introspection::Message::GetType ( ) const
inline

Get the fully qualified type of the message.

Returns
const std::string&

Definition at line 78 of file Message.h.

void swarmros::introspection::Message::SetType ( const std::string &  type)
inline

Set the type of the object and fetch its serializer.

Parameters
typeROS type

Definition at line 66 of file Message.h.

Member Data Documentation

std_msgs::Header swarmros::introspection::Message::_header
private

Header.

Definition at line 37 of file Message.h.

const MessageSerializer* swarmros::introspection::Message::_serializer
private

Reference to the serializer used to construct this message.

Definition at line 25 of file Message.h.

std::string swarmros::introspection::Message::_type
private

ROS type.

Definition at line 31 of file Message.h.


The documentation for this class was generated from the following file:


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48