Changeset 10510 for trunk/FACT++


Ignore:
Timestamp:
05/02/11 19:04:13 (14 years ago)
Author:
tbretz
Message:
Moved exit handler to DimErrorRedirecter.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r10484 r10510  
    7676    //    fSrvVersion((name+"/VERSION").c_str(), const_cast<int&>(fVersion)),
    7777{
    78     // WARNING: This exit handler is GLOBAL!
    79     DimServer::addExitHandler(this);
    8078    SetDefaultStateNames();
    8179}
  • trunk/FACT++/src/StateMachineDim.h

    r10484 r10510  
    2020    DimStart(const std::string &name, MessageImp &imp) : DimErrorRedirecter(imp)
    2121    {
    22         DimServer::addErrorHandler(this);
    2322        DimServer::start(name.c_str());
    2423    }
    25     ~DimStart() { DimServer::stop(); }
     24    ~DimStart()
     25    {
     26        DimServer::stop();
     27    }
    2628};
    2729
    28 class StateMachineDim : public DimCommandHandler, public DimExitHandler, public StateMachine, public DimStart
     30class StateMachineDim : public DimCommandHandler, public StateMachine, public DimStart
    2931{
    3032private:
Note: See TracChangeset for help on using the changeset viewer.