Definition at line 556 of file StateMachineDimControl.cc.
References fArgumentsJS, fDebug, fScriptUser, fUser, Configuration::Get(), Configuration::GetName(), Configuration::GetOptions(), Configuration::Has(), and Dim::SendCommand().
Referenced by SetInterruptHandler().
564 const map<string, string> &js = conf.
GetOptions<
string>(
"JavaScript.");
565 for (
auto it=js.begin(); it!=js.end(); it++)
567 string key = it->first;
568 string val = it->second;
571 boost::replace_all(key,
"\\",
"\\\\");
572 boost::replace_all(key,
"'",
"\\'");
573 boost::replace_all(key,
"\"",
"\\\"");
576 boost::replace_all(val,
"\\",
"\\\\");
577 boost::replace_all(val,
"'",
"\\'");
578 boost::replace_all(val,
"\"",
"\\\"");
591 #if BOOST_VERSION < 104600 592 const string fname = boost::filesystem::path(conf.
GetName()).filename();
594 const string fname = boost::filesystem::path(conf.
GetName()).filename().string();
597 if (fname==
"dimserver")
600 if (conf.
Get<
bool>(
"stop"))
603 if (conf.
Has(
"interrupt"))
606 if (conf.
Has(
"start"))
609 if (conf.
Has(
"batch"))
610 return !
Dim::SendCommand(
"DIM_CONTROL/EXECUTE", conf.
Get<
string>(
"batch")+
" user='"+fUser+
"'");
615 if (conf.
Has(
"restart"))
T Get(const std::string &var)
const std::map< std::string, T > GetOptions(const std::string &opt)
bool SendCommand(const std::string &command)
bool Has(const std::string &var)
std::string fArgumentsJS
Default arguments provided to very java script.
const std::string & GetName() const