FACT++  1.0
MessageDimTX::MessageDimTX ( const std::string &  name,
std::ostream &  out = std::cout 
)

Constructs a DimService with the name SERVER/MESSAGE. And passes the given ostream down to the MessageImp base.

Parameters
nameName of the message server to which we want to subscribe, e.g. DRIVE
outostream passed to MessageImp. It is used to redirect the output to.

Definition at line 36 of file MessageDim.cc.

References MessageImp::Message().

37  : DimDescribedService(name + "/MESSAGE", const_cast<char*>("C"),
38  "A general logging service providing a quality of service (severity)"
39  "|Message[string]:The message"),
40  MessageImp(out), fDebug(false),
41  fMsgQueue(std::bind(&MessageDimTX::UpdateService, this, placeholders::_1))
42 {
43  // This is a message which will never arrive because
44  // the time to establish a client-sever connection is
45  // too short.
46  Message("MessageDimTX started.");
47 }
DimDescribedService(const std::string &name, const T &val, const char *desc)
Queue< std::tuple< Time, std::string, int > > fMsgQueue
Definition: MessageDim.h:15
bool UpdateService(const std::tuple< Time, std::string, int > &data)
Definition: MessageDim.cc:62
MessageImp(std::ostream &out=std::cout)
Definition: MessageImp.cc:39
int Message(const std::string &str)
Definition: MessageImp.h:46

+ Here is the call graph for this function: