Public Types | Public Member Functions | Private Attributes | List of all members
swarmros::introspection::VariantMessage Class Reference

VariantMessage implements an interface with the ROS type system to send and receive messages of any known type. More...

#include <VariantMessage.h>

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

Public Types

typedef boost::shared_ptr< VariantMessage const > ConstPtr
 Constant pointer type. More...
 
typedef boost::shared_ptr< VariantMessagePtr
 Pointer type. More...
 

Public Member Functions

swarmio::data::Variant & GetMutableValue ()
 Get mutable value. More...
 
const swarmio::data::Variant & GetValue () const
 Get value. More...
 
void SetValue (const swarmio::data::Variant &value)
 Set value. More...
 
 VariantMessage ()
 Construct an empty VariantMessage instance. More...
 
 VariantMessage (const std::string &type, const swarmio::data::Variant &value)
 Build an VariantMessage instance from a Variant. More...
 
- Public Member Functions inherited from swarmros::introspection::Message
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...
 

Private Attributes

swarmio::data::Variant _value
 Current value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from swarmros::introspection::Message
 Message ()
 Construct an empty Message instance. More...
 
 Message (const std::string &type)
 Build an Message instance for a specific type. More...
 

Detailed Description

VariantMessage implements an interface with the ROS type system to send and receive messages of any known type.

Definition at line 17 of file VariantMessage.h.

Member Typedef Documentation

Constant pointer type.

Definition at line 33 of file VariantMessage.h.

Pointer type.

Definition at line 39 of file VariantMessage.h.

Constructor & Destructor Documentation

swarmros::introspection::VariantMessage::VariantMessage ( )
inline

Construct an empty VariantMessage instance.

Definition at line 45 of file VariantMessage.h.

swarmros::introspection::VariantMessage::VariantMessage ( const std::string &  type,
const swarmio::data::Variant &  value 
)
inline

Build an VariantMessage instance from a Variant.

Parameters
typeROS type
valueVariant value

Definition at line 53 of file VariantMessage.h.

Member Function Documentation

swarmio::data::Variant& swarmros::introspection::VariantMessage::GetMutableValue ( )
inline

Get mutable value.

Returns
const swarmio::data::Variant&

Definition at line 71 of file VariantMessage.h.

const swarmio::data::Variant& swarmros::introspection::VariantMessage::GetValue ( ) const
inline

Get value.

Returns
const swarmio::data::Variant&

Definition at line 61 of file VariantMessage.h.

void swarmros::introspection::VariantMessage::SetValue ( const swarmio::data::Variant &  value)
inline

Set value.

Parameters
value

Definition at line 81 of file VariantMessage.h.

Member Data Documentation

swarmio::data::Variant swarmros::introspection::VariantMessage::_value
private

Current value.

Definition at line 25 of file VariantMessage.h.


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


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