Changeset 11063 for trunk/FACT++/src
- Timestamp:
- 06/18/11 18:12:11 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineDim.cc
r10873 r11063 1 1 // ************************************************************************** 2 2 /** @class StateMachineDim 3 4 @brief Class for a state machine implementation within a DIM network5 3 6 4 This class implements a StateMachine within a Dim network. It redirects … … 67 65 // 68 66 StateMachineDim::StateMachineDim(ostream &out, const std::string &name) 69 : StateMachine(out, name), Dim Start(name, *this), fLog(name, out),67 : StateMachine(out, name), DimLog(out, name), DimStart(name, DimLog::fLog), 70 68 fDescriptionStates((name+"/STATE_LIST").c_str(), const_cast<char*>(""), 71 69 "Provides a list with descriptions for each service." … … 178 176 int StateMachineDim::Write(const Time &time, const string &txt, int qos) 179 177 { 180 return fLog.Write(time, txt, qos);178 return DimLog::fLog.Write(time, txt, qos); 181 179 } 182 180 … … 193 191 void StateMachineDim::exitHandler(int code) 194 192 { 195 Out() << " -- " << Time().GetAsStr() << " :EXIT(" << code << ") command received." << endl;193 Out() << " -- " << Time().GetAsStr() << " - EXIT(" << code << ") command received." << endl; 196 194 if (code<0) // negative values reserved for internal use 197 195 { -
trunk/FACT++/src/StateMachineDim.h
r10510 r11063 2 2 #define FACT_StateMachineDim 3 3 4 // *************************************************************************** 5 /** 6 @class DimLog 7 8 @brief Ensures that the MessageDimTX is initialized before errors could be redirected to it 9 10 **/ 11 // *************************************************************************** 4 12 #include "MessageDim.h" // MessageDimTX 5 #include "StateMachine.h" // StateMachien 13 14 class DimLog 15 { 16 friend class StateMachineDim; 17 18 MessageDimTX fLog; 19 DimLog(std::ostream &out, const std::string &name) : fLog(name, out) { } 20 }; 6 21 7 22 // *************************************************************************** … … 28 43 }; 29 44 30 class StateMachineDim : public DimCommandHandler, public StateMachine, public DimStart 45 // *************************************************************************** 46 /** 47 @class StateMachineDim 48 49 @brief Class for a state machine implementation within a DIM network 50 51 **/ 52 // *************************************************************************** 53 #include "StateMachine.h" // StateMachien 54 55 class StateMachineDim : public DimCommandHandler, public StateMachine, public DimLog, public DimStart 31 56 { 32 57 private: 33 MessageDimTX fLog; /// Logging to the Dim network34 35 58 static const int fVersion; /// Version number 36 59
Note:
See TracChangeset
for help on using the changeset viewer.