Ignore:
Timestamp:
Jun 18, 2011, 6:12:11 PM (9 years ago)
Author:
tbretz
Message:
INtroduced a new class DimLog which ensures that the MessageDimTX is initialized _before_ the DimErrorRedirecter, otherwise a very early error could be emitted to the MessageDimTX even before it was instantiated.
File:
1 edited

Legend:

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

    r10510 r11063  
    22#define FACT_StateMachineDim
    33
     4// ***************************************************************************
     5/**
     6 @class DimLog
     7
     8 @brief Ensures that the MessageDimTX is initialized before errors could be redirected to it
     9
     10**/
     11// ***************************************************************************
    412#include "MessageDim.h"       // MessageDimTX
    5 #include "StateMachine.h"     // StateMachien
     13
     14class DimLog
     15{
     16    friend class StateMachineDim;
     17
     18    MessageDimTX fLog;
     19    DimLog(std::ostream &out, const std::string &name) : fLog(name, out) { }
     20};
    621
    722// ***************************************************************************
     
    2843};
    2944
    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
     55class StateMachineDim : public DimCommandHandler, public StateMachine, public DimLog, public DimStart
    3156{
    3257private:
    33     MessageDimTX fLog;           /// Logging to the Dim network
    34 
    3558    static const int fVersion;   /// Version number
    3659
Note: See TracChangeset for help on using the changeset viewer.