FACT++
1.0
|
Based on MessageImp, redirects log-output to a Dim service MESSAGE. More...
#include <MessageDim.h>
Public Member Functions | |
MessageDimTX (const std::string &name, std::ostream &out=std::cout) | |
~MessageDimTX () | |
int | Write (const Time &t, const std::string &txt, int qos=kInfo) |
void | SetDebug (bool b=true) |
bool | MessageQueueEmpty () const |
Public Member Functions inherited from DimDescribedService | |
template<typename T > | |
DimDescribedService (const std::string &name, const T &val, const char *desc) | |
template<typename T > | |
DimDescribedService (const std::string &name, const char *format, const T &val, const char *desc) | |
DimDescribedService (const std::string &name, const char *format, const char *desc) | |
~DimDescribedService () | |
void | setData (const void *ptr, size_t sz) |
void | setData (const char *str) |
void | setData (const std::string &str) |
template<class T > | |
void | setData (const T &data) |
template<typename T > | |
void | setData (const std::vector< T > &data) |
template<class T , size_t N> | |
void | setData (const std::array< T, N > &data) |
void | setTime (const Time &t) |
void | setTime () |
int | Update () |
int | Update (const Time &t) |
int | Update (const std::string &data) |
int | Update (const char *data) |
template<class T > | |
int | Update (const T &data) |
template<typename T > | |
int | Update (const std::vector< T > &data) |
template<class T , size_t N> | |
int | Update (const std::array< T, N > &data) |
Public Member Functions inherited from DimDescriptionService | |
DimDescriptionService (const std::string &name, const std::string &format) | |
Local storage for the applied description. More... | |
virtual | ~DimDescriptionService () |
std::string | GetDescription () const |
Public Member Functions inherited from DimService | |
DimService () | |
DimService (const char *name, int &value) | |
DimService (const char *name, float &value) | |
DimService (const char *name, double &value) | |
DimService (const char *name, longlong &value) | |
DimService (const char *name, short &value) | |
DimService (const char *name, char *string) | |
DimService (const char *name, char *format, void *structure, int size) | |
DimService (const char *name, char *format, DimServiceHandler *handler) | |
DimService (const char *name, const char *format, void *structure, int size) | |
DimService (const char *name, const char *format, DimServiceHandler *handler) | |
DimService (DimServerDns *dns, const char *name, int &value) | |
DimService (DimServerDns *dns, const char *name, float &value) | |
DimService (DimServerDns *dns, const char *name, double &value) | |
DimService (DimServerDns *dns, const char *name, longlong &value) | |
DimService (DimServerDns *dns, const char *name, short &value) | |
DimService (DimServerDns *dns, const char *name, char *string) | |
DimService (DimServerDns *dns, const char *name, char *format, void *structure, int size) | |
DimService (DimServerDns *dns, const char *name, char *format, DimServiceHandler *handler) | |
DimService (DimServerDns *dns, const char *name, const char *format, void *structure, int size) | |
DimService (DimServerDns *dns, const char *name, const char *format, DimServiceHandler *handler) | |
virtual | ~DimService () |
int | updateService () |
int | updateService (int &value) |
int | updateService (float &value) |
int | updateService (double &value) |
int | updateService (longlong &value) |
int | updateService (short &value) |
int | updateService (char *string) |
int | updateService (void *structure, int size) |
int | selectiveUpdateService (int *cids) |
int | selectiveUpdateService (int &value, int *cids) |
int | selectiveUpdateService (float &value, int *cids) |
int | selectiveUpdateService (double &value, int *cids) |
int | selectiveUpdateService (longlong &value, int *cids) |
int | selectiveUpdateService (short &value, int *cids) |
int | selectiveUpdateService (char *string, int *cids) |
int | selectiveUpdateService (void *structure, int size, int *cids) |
void | setQuality (int quality) |
void | setTimestamp (int secs, int millisecs) |
void | setData (void *data, int size) |
void | setData (int &data) |
void | setData (float &data) |
void | setData (double &data) |
void | setData (longlong &data) |
void | setData (short &data) |
void | setData (char *data) |
virtual void | serviceHandler () |
char * | getName () |
int | getTimeout (int clientId) |
int | getNClients () |
Public Member Functions inherited from DimServiceHandler | |
DimService * | getService () |
virtual | ~DimServiceHandler () |
Public Member Functions inherited from MessageImp | |
MessageImp (std::ostream &out=std::cout) | |
virtual | ~MessageImp () |
virtual void | IndicateStateChange (const Time &, const std::string &) |
void | StateChanged (const Time &time, const std::string &server, const std::string &msg, int state) |
int | Update (const std::string &txt, int severity=kMessage) |
int | Update (const char *txt, int severity=kMessage) |
int | Update (const std::ostringstream &str, int severity=kMessage) |
int | Debug (const std::string &str) |
int | Message (const std::string &str) |
int | Info (const std::string &str) |
int | Warn (const std::string &str) |
int | Error (const std::string &str) |
int | Alarm (const std::string &str) |
int | Fatal (const std::string &str) |
int | Comment (const std::string &str) |
int | Debug (const char *txt) |
int | Message (const char *txt) |
int | Info (const char *txt) |
int | Warn (const char *txt) |
int | Error (const char *txt) |
int | Alarm (const char *txt) |
int | Fatal (const char *txt) |
int | Comment (const char *txt) |
int | Debug (const std::ostringstream &str) |
int | Message (const std::ostringstream &str) |
int | Info (const std::ostringstream &str) |
int | Warn (const std::ostringstream &str) |
int | Alarm (const std::ostringstream &str) |
int | Error (const std::ostringstream &str) |
int | Fatal (const std::ostringstream &str) |
int | Comment (const std::ostringstream &str) |
std::ostream & | operator() () const |
std::ostream & | Out () const |
Private Member Functions | |
bool | UpdateService (const std::tuple< Time, std::string, int > &data) |
Private Attributes | |
bool | fDebug |
Queue< std::tuple< Time, std::string, int > > | fMsgQueue |
Additional Inherited Members | |
Public Types inherited from MessageImp | |
enum | Severity { kMessage = 10, kInfo = 20, kWarn = 30, kError = 40, kAlarm = 45, kFatal = 50, kComment = 90, kDebug = 99 } |
Severity of a message. More... | |
Static Public Member Functions inherited from DimDescribedService | |
static const std::set< std::string > & | GetServices () |
Public Attributes inherited from DimService | |
DimServiceHandler * | itsServiceHandler |
void * | itsData |
int | itsDataSize |
int | itsSize |
DisTYPE | itsType |
Public Attributes inherited from DimServiceHandler | |
DimService * | itsService |
Based on MessageImp, redirects log-output to a Dim service MESSAGE.
This is a special DimService which offers SERVER/MESSAGE to the DimNetwork and redirects output issued via its base-class MessageImp to the Dim service. The severity of the message is send as qualiy of service of the service message.
Definition at line 10 of file MessageDim.h.