Changeset 18167


Ignore:
Timestamp:
04/10/15 12:12:34 (10 years ago)
Author:
tbretz
Message:
Print not only the identification of the script but also the user who sent the STOP command.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineDimControl.cc

    r16830 r18167  
    123123}
    124124
    125 int StateMachineDimControl::StopScript()
    126 {
    127     Info("Stop received.");
     125int StateMachineDimControl::StopScript(const EventImp &imp)
     126{
     127    const string str(imp.GetString());
     128
     129    string msg("Stop received");
     130    msg += str.empty() ? "." : " ["+str+"]";
     131
     132    Info(msg);
    128133
    129134    Readline::StopScript();
     
    529534
    530535    AddEvent("STOP", "C")
    531         (bind(&StateMachineDimControl::StopScript, this))
     536        (bind(&StateMachineDimControl::StopScript, this, placeholders::_1))
    532537        ("Stop a runnning batch script or JavaScript");
    533538
  • trunk/FACT++/src/StateMachineDimControl.h

    r15430 r18167  
    4747
    4848    int StartScript(const EventImp &imp, const std::string &cmd);
    49     int StopScript();
     49    int StopScript(const EventImp &imp);
    5050    int InterruptScript(const EventImp &imp);
    5151
Note: See TracChangeset for help on using the changeset viewer.