Public Member Functions | Static Public Member Functions | List of all members
ProbabilisticSceneRecognition::SerializationHelper Class Reference

#include <SerializationHelper.h>

Public Member Functions

 SerializationHelper ()
 
 ~SerializationHelper ()
 

Static Public Member Functions

static void convertMatrixToString (boost::shared_ptr< Eigen::MatrixXd > &mat, std::string &str)
 
static void convertStringToMatrix (unsigned int size, std::string &str, boost::shared_ptr< Eigen::MatrixXd > &mat)
 
static void convertStringToVector (std::string &str, std::vector< double > &vec)
 
static void convertStringToVector (unsigned int size, std::string &str, boost::shared_ptr< Eigen::VectorXd > &vec)
 
static void convertVectorToString (std::vector< double > &vec, std::string &str)
 
static void convertVectorToString (boost::shared_ptr< Eigen::VectorXd > &vec, std::string &str)
 

Detailed Description

Helper class for converting primitive datatypes into string representations and vice versa.

Definition at line 39 of file SerializationHelper.h.

Constructor & Destructor Documentation

ProbabilisticSceneRecognition::SerializationHelper::SerializationHelper ( )

Constructor.

Definition at line 22 of file SerializationHelper.cpp.

ProbabilisticSceneRecognition::SerializationHelper::~SerializationHelper ( )

Destructor.

Definition at line 26 of file SerializationHelper.cpp.

Member Function Documentation

void ProbabilisticSceneRecognition::SerializationHelper::convertMatrixToString ( boost::shared_ptr< Eigen::MatrixXd > &  mat,
std::string &  str 
)
static

Converts am Eigen matrix into a string.

Parameters
matThe Eigen matrix to convert to string.
strThe string to fill with the content of the matrix.

Definition at line 89 of file SerializationHelper.cpp.

void ProbabilisticSceneRecognition::SerializationHelper::convertStringToMatrix ( unsigned int  size,
std::string &  str,
boost::shared_ptr< Eigen::MatrixXd > &  mat 
)
static

Converts a string into an Eigen matrix.

Parameters
sizeThe size of rows and colums of the matrix.
strThe string to convert to an Eigen matrix.
matThe matrix to fill with the content of the string.

Definition at line 100 of file SerializationHelper.cpp.

void ProbabilisticSceneRecognition::SerializationHelper::convertStringToVector ( std::string &  str,
std::vector< double > &  vec 
)
static

Converts a vector of doubles into a string.

Parameters
strThe string to convert to a vector.
vecThe vector to fill with the content of the string.

Definition at line 42 of file SerializationHelper.cpp.

void ProbabilisticSceneRecognition::SerializationHelper::convertStringToVector ( unsigned int  size,
std::string &  str,
boost::shared_ptr< Eigen::VectorXd > &  vec 
)
static

Converts a string into an Eigen vector.

Parameters
sizeThe size of the vector.
strThe string to convert to a vector.
vecThe vector to fill with the content of the string.

Definition at line 68 of file SerializationHelper.cpp.

void ProbabilisticSceneRecognition::SerializationHelper::convertVectorToString ( std::vector< double > &  vec,
std::string &  str 
)
static

Converts a vector of doubles into a string.

Parameters
vecThe vector to convert to string.
strThe string to fill with the content of the vector.

Definition at line 30 of file SerializationHelper.cpp.

void ProbabilisticSceneRecognition::SerializationHelper::convertVectorToString ( boost::shared_ptr< Eigen::VectorXd > &  vec,
std::string &  str 
)
static

Converts an Eigen vector into a string.

Parameters
vecThe vector to convert to string.
strThe string to fill with the content of the vector.

Definition at line 58 of file SerializationHelper.cpp.


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


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:09