Field for constant values.
More...
#include <ConstantField.h>
|
| virtual uint32_t | CalculateSerializedLength (const swarmio::data::Variant &value, const FieldStack &fieldStack) const override |
| | Calculate the length of a serialized message in bytes. More...
|
| |
| | ConstantField (const std::string &name, const Serializer &serializer, const std::string &value) |
| | Construct a new ConstantField object. More...
|
| |
| virtual swarmio::data::Variant | Deserialize (ros::serialization::IStream &stream, const FieldStack &fieldStack) const override |
| | Deserialize a stream into a variant. More...
|
| |
| virtual void | EmitDefault (ros::serialization::OStream &stream, const FieldStack &fieldStack) const override |
| | Write the default value to the stream. More...
|
| |
| virtual uint32_t | GetDefaultLength (const FieldStack &fieldStack) const override |
| | Get the length of the default value. More...
|
| |
| virtual void | Serialize (ros::serialization::OStream &stream, const swarmio::data::Variant &value, const FieldStack &fieldStack) const override |
| | Serialize a variant onto a stream. More...
|
| |
| virtual void | WriteDefinition (std::stringstream &stream, bool forHash) const override |
| | Write the definition of this field to a string stream. More...
|
| |
| virtual swarmio::data::Variant | DeserializeArray (ros::serialization::IStream &stream, uint32_t count, const FieldStack &fieldStack) const override |
| | Deserialize a stream into a variant array - not supported on Fields. More...
|
| |
| | Field (const std::string &name, const Serializer &serializer) |
| | Construct a new Field object. More...
|
| |
| virtual swarmio::data::discovery::Field | GetFieldDescriptor () const override |
| | Build a field descriptor for the underlying type. More...
|
| |
| const Serializer & | GetSerializer () const |
| | Get the associated serializer. More...
|
| |
| virtual const std::string & | GetFullName () const |
| | Get the fully qualified name for the type behind the serializer. More...
|
| |
| const std::string & | GetName () const |
| | Get the non-qualified name for the type behind the serializer. More...
|
| |
| virtual | ~Serializer () |
| | Destructor. More...
|
| |
Field for constant values.
Definition at line 13 of file ConstantField.h.
| ConstantField::ConstantField |
( |
const std::string & |
name, |
|
|
const Serializer & |
serializer, |
|
|
const std::string & |
value |
|
) |
| |
| uint32_t ConstantField::CalculateSerializedLength |
( |
const swarmio::data::Variant & |
value, |
|
|
const FieldStack & |
fieldStack |
|
) |
| const |
|
overridevirtual |
| uint32_t ConstantField::GetDefaultLength |
( |
const FieldStack & |
fieldStack | ) |
const |
|
overridevirtual |
| void ConstantField::ParseBool |
( |
const std::string & |
value | ) |
|
|
private |
| void ConstantField::ParseFloat |
( |
const std::string & |
value | ) |
|
|
private |
| void ConstantField::ParseSigned |
( |
const std::string & |
value | ) |
|
|
private |
| void ConstantField::ParseString |
( |
const std::string & |
value | ) |
|
|
private |
| void ConstantField::ParseUnsigned |
( |
const std::string & |
value | ) |
|
|
private |
| void ConstantField::WriteDefinition |
( |
std::stringstream & |
stream, |
|
|
bool |
forHash |
|
) |
| const |
|
overridevirtual |
| std::string swarmros::introspection::ConstantField::_rawValue |
|
private |
| swarmio::data::Variant swarmros::introspection::ConstantField::_value |
|
private |
The documentation for this class was generated from the following files: