7#ifndef YARP_SERVERSQL_IMPL_TRIPLE_H
8#define YARP_SERVERSQL_IMPL_TRIPLE_H
54 void split(
const std::string& str)
59 size_t stop = std::string::npos;
60 size_t ins = str.find(
':');
61 if (ins!=std::string::npos) {
62 ns = str.substr(0,ins);
66 size_t ine = str.find(
'=',start);
67 if (ine!=std::string::npos) {
68 value = str.substr(ine+1,std::string::npos);
72 name = str.substr(start,stop-start);
111 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)