REC RPC library
Classes | Typedefs | Functions
rec::rpc::serialization Namespace Reference

Classes

class  Complex
 Base class for complex serializable data containers. More...
 
class  Pose2D
 Pre-defined serialization class that stores a 2D pose. More...
 
class  Primitive
 Serialization class for primitive objects and values. More...
 
class  Serializable
 Base class for all serializable data. More...
 
class  String
 Serialization class for strings. More...
 

Typedefs

typedef Primitive< QByteArray > ByteArray
 Pre-defined container type for QByteArray. More...
 
typedef Primitive< QImage > Image
 Pre-defined container type for QImage. More...
 
typedef QSharedPointer< Pose2DPose2DPtr
 Shared pointer type definition. More...
 
typedef Primitive< QVector< Pose2D > > Pose2DArray
 Serializable array type definition. More...
 
typedef QSharedPointer< Pose2DArrayPose2DArrayPtr
 Serializable array shared pointer type definition. More...
 
typedef Primitive< rec::rpc::ClientInfoSetTopicInfo
 Pre-defined serialization class that stores a list of clients that listen to a topic. More...
 

Functions

static void init ()
 Some initializations. More...
 
QDataStream & operator<< (QDataStream &out, const Serializable &data)
 Serialize the data and write it into a data stream. More...
 
QDataStream & operator>> (QDataStream &in, Serializable &data)
 Read data from a data stream and deserialize it. More...
 

Typedef Documentation

Pre-defined container type for QByteArray.

Definition at line 41 of file rec_rpc_serialization_ByteArray.h.

Pre-defined container type for QImage.

Definition at line 41 of file rec_rpc_serialization_Image.h.

Serializable array type definition.

Definition at line 66 of file rec_rpc_serialization_Pose2D.h.

Serializable array shared pointer type definition.

Definition at line 68 of file rec_rpc_serialization_Pose2D.h.

typedef QSharedPointer< Pose2D > rec::rpc::serialization::Pose2DPtr

Shared pointer type definition.

Definition at line 63 of file rec_rpc_serialization_Pose2D.h.

Pre-defined serialization class that stores a list of clients that listen to a topic.

Definition at line 40 of file rec_rpc_serialization_TopicInfo.h.

Function Documentation

static void rec::rpc::serialization::init ( )
static

Some initializations.

Definition at line 39 of file rec_rpc_serialization_init.h.

QDataStream& rec::rpc::serialization::operator<< ( QDataStream &  out,
const Serializable data 
)
inline

Serialize the data and write it into a data stream.

Parameters
outData stream.
dataData to be serialized. The serialize() method will be used.
See also
operator>>(), Serializable::serialize(), Serializable::deserialize()

Definition at line 112 of file rec_rpc_serialization_Serializable.h.

References rec::rpc::serialization::Serializable::serialize().

QDataStream& rec::rpc::serialization::operator>> ( QDataStream &  in,
Serializable data 
)
inline

Read data from a data stream and deserialize it.

Parameters
inData stream.
dataObject that stores the deserialized data. The deserialize() method will be used.
See also
operator<<(), Serializable::serialize(), Serializable::deserialize()

Definition at line 126 of file rec_rpc_serialization_Serializable.h.

References rec::rpc::serialization::Serializable::deserialize().