1 #ifndef BT_BASIC_TYPES_H 2 #define BT_BASIC_TYPES_H 63 template <
typename T>
inline 68 std::cerr <<
"You (maybe indirectly) called BT::convertFromString() for type [" <<
69 type_name <<
"], but I can't find the template specialization.\n" << std::endl;
71 throw std::logic_error(std::string(
"You didn't implement the template specialization of " 72 "convertFromString for this type: ") + type_name );
76 std::string convertFromString<std::string>(
const StringView& str);
91 std::vector<int> convertFromString<std::vector<int>>(
const StringView& str);
94 std::vector<double> convertFromString<std::vector<double>>(
const StringView& str);
124 std::vector<StringView>
splitString(
const StringView& strToSplit,
char delimeter);
127 #endif // BT_BASIC_TYPES_H
double convertFromString< double >(const StringView &str)
Point3D convertFromString(const StringView &key)
NodeType convertFromString< NodeType >(const StringView &str)
std::ostream & operator<<(std::ostream &os, const BT::NodeStatus &status)
unsigned convertFromString< unsigned >(const StringView &str)
const char * toStr(const BT::NodeStatus &status, bool colored=false)
toStr converts NodeStatus to string. Optionally colored.
std::vector< StringView > splitString(const StringView &strToSplit, char delimeter)
std::string demangle(char const *name)
NodeStatus convertFromString< NodeStatus >(const StringView &str)
nonstd::string_view StringView
const char * convertFromString< const char * >(const StringView &str)
bool convertFromString< bool >(const StringView &str)
int convertFromString< int >(const StringView &str)