Definition at line 5 of file RemoteControl.cc.
References fCurrentServer, HasServer(), kRed, lout, SendDimCommand(), and str.
9 const size_t p1 =
str.find_first_of(
' ');
10 const size_t p2 =
str.find_first_of(
'/');
12 const bool is_cmd = p2!=string::npos && p1>p2;
16 s =
str.substr(0, p2);
18 if (p2<p1 && p2!=
str.length()-1)
20 const string c =
str.substr(p2+1);
33 if (!change && is_cmd)
34 throw runtime_error(
"Unkown server '"+s+
"'");
37 lout <<
kRed <<
"Unkown server '" << s <<
"'" << endl;
virtual bool HasServer(const std::string &)
std::ostream & lout
Output stream for local synchrounous output.
std::string fCurrentServer
Output stream for local synchrounous output.
virtual bool SendDimCommand(ostream &, const std::string &, const std::string &, bool=false)