FACT++  1.0
int MessageDimTX::Write ( const Time t,
const std::string &  txt,
int  qos = kInfo 
)
virtual

First calls MessageImp::Write to output the message tobe transmitted also to a local logging stream. Then the Dim service is updated. If sending of the message failed a message is written to the logging stream stored in MessageImp. It is intentionally not output through Update to make it look different than usual transmitted messages.

Reimplemented from MessageImp.

Definition at line 83 of file MessageDim.cc.

References fMsgQueue, and MessageImp::Write().

Referenced by StateMachineDim::Write().

84 {
85  MessageImp::Write(t, txt, qos);
86  fMsgQueue.emplace(t, txt, qos);
87  return 1;
88 }
Queue< std::tuple< Time, std::string, int > > fMsgQueue
Definition: MessageDim.h:15
virtual int Write(const Time &time, const std::string &txt, int qos=kMessage)
Definition: MessageImp.cc:133
uint16_t qos
Definition: HeadersGPS.h:29

+ Here is the call graph for this function:

+ Here is the caller graph for this function: