SerializationHelper.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 // Global includes
21 #include <cmath>
22 #include <vector>
23 
24 // Package includes
25 #include <Eigen/Core>
26 
27 #include <boost/foreach.hpp>
28 #include <boost/shared_ptr.hpp>
29 #include <boost/lexical_cast.hpp>
30 #include <boost/algorithm/string.hpp>
31 #include <boost/property_tree/ptree.hpp>
32 
34 
40  public:
41 
46 
51 
58  static void convertVectorToString(std::vector<double>& vec, std::string& str);
59 
66  static void convertStringToVector(std::string& str, std::vector<double>& vec);
67 
74  static void convertVectorToString(boost::shared_ptr<Eigen::VectorXd>& vec, std::string& str);
75 
83  static void convertStringToVector(unsigned int size, std::string& str, boost::shared_ptr<Eigen::VectorXd>& vec);
84 
91  static void convertMatrixToString(boost::shared_ptr<Eigen::MatrixXd>& mat, std::string& str);
92 
100  static void convertStringToMatrix(unsigned int size, std::string& str, boost::shared_ptr<Eigen::MatrixXd>& mat);
101  };
102 }
static void convertMatrixToString(boost::shared_ptr< Eigen::MatrixXd > &mat, std::string &str)
static void convertStringToVector(std::string &str, std::vector< double > &vec)
static void convertVectorToString(std::vector< double > &vec, std::string &str)
static void convertStringToMatrix(unsigned int size, std::string &str, boost::shared_ptr< Eigen::MatrixXd > &mat)


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 03:57:54