BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(VectorToString,
bbtk::AtomicBlackBox);
//====================================================================
-
-
-
- /*
- //====================================================================
- // Template specialization of encode_item
- template <> int8_t VectorToString<int8_t> ::encode_item(const std::string& s)
- {
- return (int8_t)atoi ( s.c_str() );
- }
-
- template <> uint8_t VectorToString<uint8_t> ::encode_item(const std::string& s)
- {
- return (uint8_t)atoi ( s.c_str() );
-}
-
-template <> int16_t VectorToString<int16_t> ::encode_item(const std::string& s)
-{
- return (int16_t)atoi ( s.c_str() );
-}
-
-template <> uint16_t VectorToString<uint16_t> ::encode_item(const std::string& s)
-{
- return (uint16_t)atoi ( s.c_str() );
-}
-
-template <> int32_t VectorToString<int32_t> ::encode_item(const std::string& s)
-{
- return (int32_t)atoi ( s.c_str() );
-}
-
-template <> uint32_t VectorToString<uint32_t> ::encode_item(const std::string& s)
-{
- return (uint32_t)atoi ( s.c_str() );
-}
-
-template <> long VectorToString<long> ::encode_item(const std::string& s)
-{
- return (long)atoi ( s.c_str() );
-}
-
-template <> float VectorToString<float> ::encode_item(const std::string& s)
-{
- return (float)atof ( s.c_str() );
-}
-
-template <> double VectorToString<double> ::encode_item(const std::string& s)
-{
- return atof ( s.c_str() );
-}
-
-template <> std::string VectorToString<std::string> ::encode_item(const std::string& s)
-{
- return s;
-}
- */
//====================================================================