- Timestamp:
- 03/30/11 15:59:18 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/MessageDim.cc
r10183 r10274 36 36 MessageDimTX::MessageDimTX(const std::string &name, std::ostream &out) 37 37 : DimService((name + "/MESSAGE").c_str(), const_cast<char*>("")), 38 MessageImp(out) 38 MessageImp(out), fDebug(false) 39 39 { 40 40 // This is a message which will never arrive because 41 41 // the time to establish a client-sever connection is 42 42 // too short. 43 Message("MessageDim servicestarted.");43 Message("MessageDimTX started."); 44 44 } 45 45 … … 50 50 MessageDimTX::~MessageDimTX() 51 51 { 52 Message("MessageDim serviceshutting down..");52 Message("MessageDimTX shutting down.."); 53 53 } 54 54 … … 72 72 const int rc = updateService(); 73 73 74 if (rc==0 )75 Out() << " !! " << t.GetAsStr() << " :Sending failed!" << endl;74 if (rc==0 && fDebug) 75 Out() << " !! " << t.GetAsStr() << " - Sending failed!" << endl; 76 76 77 77 return rc; -
trunk/FACT++/src/MessageDim.h
r10183 r10274 10 10 class MessageDimTX : public DimService, public MessageImp 11 11 { 12 private: 13 bool fDebug; 14 12 15 public: 13 16 MessageDimTX(const std::string &name, std::ostream &out=std::cout); … … 15 18 16 19 int Write(const Time &t, const char *txt, int qos=kInfo); 20 21 void SetDebug(bool b=true) { fDebug=b; } 17 22 }; 18 23
Note:
See TracChangeset
for help on using the changeset viewer.