Changeset 14718 for trunk


Ignore:
Timestamp:
12/03/12 21:50:11 (12 years ago)
Author:
tbretz
Message:
The workaround with the empty text to change the state is outdated and has been removed.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r14674 r14718  
    6666}
    6767
    68 int StateMachineDimControl::Write(const Time &time, const std::string &txt, int qos)
    69 {
    70     if (txt=="")
    71     {
    72         return ChangeState(qos, time, Readline::GetScriptDepth(), Readline::GetScript(), fScriptUser);
     68int StateMachineDimControl::ChangeState(int state)
     69{
     70    return ChangeState(state, Time(), Readline::GetScriptDepth(), Readline::GetScript(), fScriptUser);
    7371        /*
    7472         === This might be necessary for thread safety,
     
    8482        return PostEvent(evt);
    8583        */
    86     }
    87 
    88     // if (qos<fVerbosity)
    89     //     return 0;
    90 
    91     return StateMachineDim::Write(time, txt, qos);
    9284}
    9385
  • trunk/FACT++/src/StateMachineDimControl.h

    r14674 r14718  
    4141    static bool fIsServer;
    4242
    43     int ChangeState(int qos, const Time &time=Time(), int scriptdepth=-1, std::string scriptfile="", std::string user="");
    44     int Write(const Time &time, const std::string &txt, int qos=kMessage);
     43    int ChangeState(int qos, const Time &time, int scriptdepth, std::string scriptfile, std::string user);
     44    int ChangeState(int state);
    4545
    4646    int StartScript(const EventImp &imp, const std::string &cmd);
Note: See TracChangeset for help on using the changeset viewer.