14 #ifndef __FLASHMATCHBASE_PARSER_H__
15 #define __FLASHMATCHBASE_PARSER_H__
21 namespace flashmatch {
26 template<> std::string FromString< std::string > (
const std::string&
value );
46 template<> std::vector< std::string > FromString< std::vector< std::string > > (
const std::string&
value );
48 template<> std::vector< float > FromString< std::vector< float > > (
const std::string&
value );
50 template<> std::vector< double > FromString< std::vector< double > > (
const std::string&
value );
52 template<> std::vector< short > FromString< std::vector< short > > (
const std::string&
value );
54 template<> std::vector< int > FromString< std::vector< int > > (
const std::string&
value );
56 template<> std::vector< long > FromString< std::vector< long > > (
const std::string&
value );
58 template<> std::vector< unsigned short > FromString< std::vector< unsigned short > > (
const std::string&
value );
60 template<> std::vector< unsigned int > FromString< std::vector< unsigned int > > (
const std::string&
value );
62 template<> std::vector< unsigned long > FromString< std::vector< unsigned long > > (
const std::string&
value );
64 template<> std::vector< bool > FromString< std::vector< bool > > (
const std::string&
value );
69 template<> std::string ToString<std::string>(
const std::string&
value);
74 for(
auto const& v : value)
76 res = res.substr(0,res.size()-1);
bool FromString< bool >(const std::string &value)
Parse flashmatch::PSet configuration file content.
float FromString< float >(const std::string &value)
Parse flashmatch::PSet configuration file content.
std::string FromString(const std::string &value)
int FromString< int >(const std::string &value)
Parse flashmatch::PSet configuration file content.
unsigned int FromString< unsigned int >(const std::string &value)
Parse flashmatch::PSet configuration file content.
long FromString< long >(const std::string &value)
Parse flashmatch::PSet configuration file content.
double FromString< double >(const std::string &value)
Parse flashmatch::PSet configuration file content.
std::string VecToString(const std::vector< T > &value)
Parse flashmatch::PSet configuration file content.
std::string to_string(WindowPattern const &pattern)
unsigned short FromString< unsigned short >(const std::string &value)
Parse flashmatch::PSet configuration file content.
unsigned long FromString< unsigned long >(const std::string &value)
Parse flashmatch::PSet configuration file content.
std::string ToString(const T &value)
Parse flashmatch::PSet configuration file content.
short FromString< short >(const std::string &value)
Parse flashmatch::PSet configuration file content.