66 typedef char_separator<char> separator;
67 const tokenizer<separator> tok(
msg, separator(
"\n"));
69 for (
auto it=tok.begin(); it!=tok.end(); it++)
79 const size_t last_pipe = str.find_last_of(
'|');
82 const string type = str.substr(last_pipe+1);
90 const size_t first_pipe = str.find_first_of(
'|');
91 const size_t first_slash = str.find_first_of(
'/');
95 service.
server = str.substr(0, first_slash);
96 service.
name = str.substr(0, first_pipe);
97 service.
service = str.substr(first_slash+1, first_pipe-first_slash-1);
98 service.
format = str.substr(first_pipe +1, last_pipe -first_pipe -1);
99 service.
iscmd = type==
"CMD";
std::vector< std::string > fServiceList
std::string GetString() const
virtual Time GetTime() const
virtual void CallbackServiceAdd(const Service &service)
virtual size_t GetSize() const