Drake
SerializerInterface Class Referenceabstract

SerializerInterface translates between LCM message bytes and drake::systems::AbstractValue objects that contain LCM messages, e.g., a Value<lcmt_drake_signal>. More...

#include <drake/systems/lcm/serializer.h>

Inheritance diagram for SerializerInterface:
[legend]

Public Member Functions

virtual ~SerializerInterface ()
 
virtual std::unique_ptr< AbstractValueCreateDefaultValue () const =0
 Creates a value-initialized (zeroed) instance of the message object. More...
 
virtual void Deserialize (const void *message_bytes, int message_length, AbstractValue *abstract_value) const =0
 Translates LCM message bytes into a drake::systems::AbstractValue object. More...
 
virtual void Serialize (const AbstractValue &abstract_value, std::vector< uint8_t > *message_bytes) const =0
 Translates a drake::systems::AbstractValue object into LCM message bytes. More...
 
Does not allow copy, move, or assignment
 SerializerInterface (const SerializerInterface &)=delete
 
SerializerInterfaceoperator= (const SerializerInterface &)=delete
 
 SerializerInterface (SerializerInterface &&)=delete
 
SerializerInterfaceoperator= (SerializerInterface &&)=delete
 

Protected Member Functions

 SerializerInterface ()
 

Detailed Description

SerializerInterface translates between LCM message bytes and drake::systems::AbstractValue objects that contain LCM messages, e.g., a Value<lcmt_drake_signal>.

See Serializer for a message-specific concrete subclass.

Constructor & Destructor Documentation

~SerializerInterface ( )
virtual
SerializerInterface ( )
inlineprotected

Member Function Documentation

virtual std::unique_ptr<AbstractValue> CreateDefaultValue ( ) const
pure virtual

Creates a value-initialized (zeroed) instance of the message object.

The result can be used as the output object filled in by Deserialize.

Implemented in Serializer< LcmMessage >.

virtual void Deserialize ( const void *  message_bytes,
int  message_length,
AbstractValue abstract_value 
) const
pure virtual

Translates LCM message bytes into a drake::systems::AbstractValue object.

Implemented in Serializer< LcmMessage >.

SerializerInterface& operator= ( SerializerInterface &&  )
delete
SerializerInterface& operator= ( const SerializerInterface )
delete
virtual void Serialize ( const AbstractValue abstract_value,
std::vector< uint8_t > *  message_bytes 
) const
pure virtual

Translates a drake::systems::AbstractValue object into LCM message bytes.

Implemented in Serializer< LcmMessage >.


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