Changeset 14070 for trunk


Ignore:
Timestamp:
06/04/12 21:50:34 (12 years ago)
Author:
tbretz
Message:
Allow to instantiate the DimServer without a name. In this case the server is not started.
File:
1 edited

Legend:

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

    r14002 r14070  
    3535    DimStart(const std::string &name, MessageImp &imp) : DimErrorRedirecter(imp)
    3636    {
    37         DimServer::start(name.c_str());
    38         sleep(1);
     37        if (!name.empty())
     38        {
     39            DimServer::start(name.c_str());
     40            sleep(1);
     41        }
    3942    }
    4043    ~DimStart()
     
    6366//    DimService fSrvVersion;        /// DimService offering fVersion
    6467
    65 
    6668    void exitHandler(int code);  /// Overwritten DimCommand::exitHandler.
    6769    void commandHandler();       /// Overwritten DimCommand::commandHandler
Note: See TracChangeset for help on using the changeset viewer.