7 #ifndef YARP_SERVERSQL_IMPL_TRIPLE_H
8 #define YARP_SERVERSQL_IMPL_TRIPLE_H
56 void split(
const std::string& str)
61 size_t stop = std::string::npos;
62 size_t ins = str.find(
':');
63 if (ins!=std::string::npos) {
64 ns = str.substr(0,ins);
68 size_t ine = str.find(
'=',start);
69 if (ine!=std::string::npos) {
70 value = str.substr(ine+1,std::string::npos);
74 name = str.substr(start,stop-start);
113 r = std::string(
ns) +
":" + r;
The basic unit of data the name server works with.
void split(const std::string &str)
void setNsNameValue(const char *ns, const char *name, const char *value)
Triple(const Triple &alt)
std::string toString() const
void setNameValue(const char *name, const char *value)
The main, catch-all namespace for YARP.