Changeset 10476 for trunk/FACT++/src


Ignore:
Timestamp:
04/28/11 11:07:25 (14 years ago)
Author:
tbretz
Message:
Changed the services to described services.
Location:
trunk/FACT++/src
Files:
4 edited

Legend:

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

    r10439 r10476  
    3535//
    3636MessageDimTX::MessageDimTX(const std::string &name, std::ostream &out)
    37 : DimService((name + "/MESSAGE").c_str(), const_cast<char*>("")),
     37    : DimDescribedService((name + "/MESSAGE").c_str(), const_cast<char*>(""),
     38                          "A general logging service providing a quality of service (severity)"
     39                          "|Message[string]:The message"),
    3840MessageImp(out), fDebug(false)
    3941{
  • trunk/FACT++/src/MessageDim.h

    r10439 r10476  
    66
    77
    8 #include <dis.hxx> // DimService
     8#include "DimDescriptionService.h"
     9//#include <dis.hxx> // DimService
    910
    10 class MessageDimTX : public DimService, public MessageImp
     11class MessageDimTX : public DimDescribedService, public MessageImp
    1112{
    1213private:
  • trunk/FACT++/src/StateMachineDim.cc

    r10436 r10476  
    6767//
    6868StateMachineDim::StateMachineDim(ostream &out, const std::string &name)
    69 : StateMachine(out, name), DimStart(name, *this), fLog(name, out),
    70     fSrvState((name+"/STATE").c_str(), const_cast<char*>("")),
    71 //    fSrvVersion((name+"/VERSION").c_str(), const_cast<int&>(fVersion)),
    72     fDescriptionStates((name+"/STATE_LIST").c_str(), const_cast<char*>(""))
     69    : StateMachine(out, name), DimStart(name, *this), fLog(name, out),
     70    fSrvState((name+"/STATE").c_str(), const_cast<char*>(""),
     71              "Provides the state of the state machine as quality of service."
     72              "|Text[string]:A human readable string sent by the last state change."),
     73    //    fSrvVersion((name+"/VERSION").c_str(), const_cast<int&>(fVersion)),
     74    fDescriptionStates((name+"/STATE_LIST").c_str(), const_cast<char*>(""),
     75                       "Provides a list with descriptions for each service."
     76                       "|StateList[string]:A \\n separated list of the form id:name=description")
    7377{
    7478    // WARNING: This exit handler is GLOBAL!
  • trunk/FACT++/src/StateMachineDim.h

    r10436 r10476  
    3333    static const int fVersion;   /// Version number
    3434
    35     DimService fSrvState;          /// DimService offering fCurrentState
     35    DimDescribedService fSrvState;          /// DimService offering fCurrentState
    3636//    DimService fSrvVersion;        /// DimService offering fVersion
    3737
    38     DimService fDescriptionStates; /// DimService propagating the state descriptions
     38    DimDescribedService fDescriptionStates; /// DimService propagating the state descriptions
    3939
    4040    void exitHandler(int code);  /// Overwritten DimCommand::exitHandler.
Note: See TracChangeset for help on using the changeset viewer.