Functions
PrimitiveSerializer.cpp File Reference
#include <swarmros/introspection/PrimitiveSerializer.h>
#include <swarmros/introspection/TypeMismatchException.h>
#include <swarmros/introspection/IndexedFieldStack.h>
#include <swarmros/UnqualifiedException.h>
#include <swarmio/data/Helper.h>
#include <boost/numeric/conversion/cast.hpp>
#include <limits>
#include <regex>
Include dependency graph for PrimitiveSerializer.cpp:

Go to the source code of this file.

Functions

template<typename T >
static T DeserializeAs (ros::serialization::IStream &stream)
 
template<>
bool DeserializeAs (ros::serialization::IStream &stream)
 
template<>
std::string DeserializeAs (ros::serialization::IStream &stream)
 
int64_t DeserializeAsDuration (ros::serialization::IStream &stream)
 
uint64_t DeserializeAsTime (ros::serialization::IStream &stream)
 
template<typename T , typename O >
static void SerializeAs (ros::serialization::OStream &stream, O value, const FieldStack &fieldStack)
 
static void SerializeAs (ros::serialization::OStream &stream, int64_t value, PrimitiveType type, const FieldStack &fieldStack)
 
static void SerializeAs (ros::serialization::OStream &stream, uint64_t value, PrimitiveType type, const FieldStack &fieldStack)
 
static void SerializeAs (ros::serialization::OStream &stream, bool value, PrimitiveType type, const FieldStack &fieldStack)
 
static void SerializeAs (ros::serialization::OStream &stream, double value, PrimitiveType type, const FieldStack &fieldStack)
 
static void SerializeAs (ros::serialization::OStream &stream, const std::string &value, PrimitiveType type, const FieldStack &fieldStack)
 
static void SerializeAsBool (ros::serialization::OStream &stream, bool value, const FieldStack &fieldStack)
 
template<typename O >
static void SerializeAsDuration (ros::serialization::OStream &stream, O value, const FieldStack &fieldStack)
 
static void SerializeAsString (ros::serialization::OStream &stream, const std::string &value, const FieldStack &fieldStack)
 
template<typename O >
static void SerializeAsTime (ros::serialization::OStream &stream, O value, const FieldStack &fieldStack)
 
static void ThrowTypeMismatchException (swarmio::data::Variant::ValueCase sourceType, PrimitiveType targetPrimitiveType, const FieldStack &fieldStack)
 

Function Documentation

template<typename T >
static T DeserializeAs ( ros::serialization::IStream stream)
inlinestatic

Definition at line 342 of file PrimitiveSerializer.cpp.

template<>
bool DeserializeAs ( ros::serialization::IStream stream)
inline

Definition at line 350 of file PrimitiveSerializer.cpp.

template<>
std::string DeserializeAs ( ros::serialization::IStream stream)
inline

Definition at line 358 of file PrimitiveSerializer.cpp.

int64_t DeserializeAsDuration ( ros::serialization::IStream stream)
inline

Definition at line 371 of file PrimitiveSerializer.cpp.

uint64_t DeserializeAsTime ( ros::serialization::IStream stream)
inline

Definition at line 364 of file PrimitiveSerializer.cpp.

template<typename T , typename O >
static void SerializeAs ( ros::serialization::OStream stream,
value,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 54 of file PrimitiveSerializer.cpp.

static void SerializeAs ( ros::serialization::OStream stream,
int64_t  value,
PrimitiveType  type,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 112 of file PrimitiveSerializer.cpp.

static void SerializeAs ( ros::serialization::OStream stream,
uint64_t  value,
PrimitiveType  type,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 162 of file PrimitiveSerializer.cpp.

static void SerializeAs ( ros::serialization::OStream stream,
bool  value,
PrimitiveType  type,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 212 of file PrimitiveSerializer.cpp.

static void SerializeAs ( ros::serialization::OStream stream,
double  value,
PrimitiveType  type,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 226 of file PrimitiveSerializer.cpp.

static void SerializeAs ( ros::serialization::OStream stream,
const std::string &  value,
PrimitiveType  type,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 244 of file PrimitiveSerializer.cpp.

static void SerializeAsBool ( ros::serialization::OStream stream,
bool  value,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 66 of file PrimitiveSerializer.cpp.

template<typename O >
static void SerializeAsDuration ( ros::serialization::OStream stream,
value,
const FieldStack fieldStack 
)
static

Definition at line 97 of file PrimitiveSerializer.cpp.

static void SerializeAsString ( ros::serialization::OStream stream,
const std::string &  value,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 71 of file PrimitiveSerializer.cpp.

template<typename O >
static void SerializeAsTime ( ros::serialization::OStream stream,
value,
const FieldStack fieldStack 
)
static

Definition at line 79 of file PrimitiveSerializer.cpp.

static void ThrowTypeMismatchException ( swarmio::data::Variant::ValueCase  sourceType,
PrimitiveType  targetPrimitiveType,
const FieldStack fieldStack 
)
inlinestatic

Definition at line 13 of file PrimitiveSerializer.cpp.



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