ICP  1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
DAEstatus_message Class Reference

#include <DAEstatus.h>

Public Member Functions

 DAEstatus_message ()
 
 DAEstatus_message (int severity, int errtype, int facility, const std::string &text)
 
std::ostream & print (std::ostream &str, bool format_with_T=false, bool add_cr=false) const
 
bool checkEQ (int severity) const
 
bool checkLE (int severity) const
 
bool checkGE (int severity) const
 
bool check (int severity, int direction) const
 
bool operator== (int severity) const
 
bool operator!= (int severity) const
 
bool operator<= (int severity) const
 
bool operator>= (int severity) const
 
int resetSeverityToAtMost (int severity)
 
int resetSeverityToAtLeast (int severity)
 
std::string timeStr (bool format_with_T) const
 
std::string str () const
 

Static Public Member Functions

static bool compareEQ (int left_sev, int right_sev)
 
static bool compareLE (int left_sev, int right_sev)
 
static bool compareGE (int left_sev, int right_sev)
 
static bool compare (int left_sev, int right_sev, int direction)
 

Static Private Member Functions

static void make_iso_time (time_t time, char *buffer, int len, bool format_with_T)
 

Private Attributes

int m_severity
 
int m_errtype
 
int m_facility
 
std::string m_text
 
time_t m_time
 

Friends

class DAEstatus
 

Detailed Description

Definition at line 8 of file DAEstatus.h.

Constructor & Destructor Documentation

DAEstatus_message::DAEstatus_message ( )
inline

Definition at line 42 of file DAEstatus.h.

References m_time.

DAEstatus_message::DAEstatus_message ( int  severity,
int  errtype,
int  facility,
const std::string &  text 
)

Definition at line 291 of file DAEstatus.cpp.

References m_text, and m_time.

Member Function Documentation

bool DAEstatus_message::check ( int  severity,
int  direction 
) const
inline

Definition at line 48 of file DAEstatus.h.

References compare(), and m_severity.

bool DAEstatus_message::checkEQ ( int  severity) const
inline

Definition at line 45 of file DAEstatus.h.

References compareEQ(), and m_severity.

Referenced by operator!=(), and operator==().

bool DAEstatus_message::checkGE ( int  severity) const
inline

Definition at line 47 of file DAEstatus.h.

References compareGE(), and m_severity.

Referenced by operator>=().

bool DAEstatus_message::checkLE ( int  severity) const
inline

Definition at line 46 of file DAEstatus.h.

References compareLE(), and m_severity.

Referenced by operator<=().

bool DAEstatus_message::compare ( int  left_sev,
int  right_sev,
int  direction 
)
inlinestatic

Definition at line 88 of file DAEstatus.h.

References compareEQ(), compareGE(), compareLE(), SEV_ALL, SEV_EQ, SEV_GE, and SEV_LE.

Referenced by check(), and DAEstatus::check().

bool DAEstatus_message::compareEQ ( int  left_sev,
int  right_sev 
)
static

Definition at line 303 of file DAEstatus.cpp.

Referenced by checkEQ(), and compare().

bool DAEstatus_message::compareGE ( int  left_sev,
int  right_sev 
)
static
bool DAEstatus_message::compareLE ( int  left_sev,
int  right_sev 
)
static

Definition at line 309 of file DAEstatus.cpp.

Referenced by checkLE(), compare(), resetSeverityToAtLeast(), and resetSeverityToAtMost().

static void DAEstatus_message::make_iso_time ( time_t  time,
char *  buffer,
int  len,
bool  format_with_T 
)
inlinestaticprivate

Definition at line 18 of file DAEstatus.h.

Referenced by timeStr().

bool DAEstatus_message::operator!= ( int  severity) const
inline

Definition at line 50 of file DAEstatus.h.

References checkEQ().

bool DAEstatus_message::operator<= ( int  severity) const
inline

Definition at line 51 of file DAEstatus.h.

References checkLE().

bool DAEstatus_message::operator== ( int  severity) const
inline

Definition at line 49 of file DAEstatus.h.

References checkEQ().

bool DAEstatus_message::operator>= ( int  severity) const
inline

Definition at line 52 of file DAEstatus.h.

References checkGE().

std::ostream & DAEstatus_message::print ( std::ostream &  str,
bool  format_with_T = false,
bool  add_cr = false 
) const

Definition at line 273 of file DAEstatus.cpp.

References str(), and timeStr().

Referenced by ISISinstrumentControl::debugReportFunction(), and operator<<().

int DAEstatus_message::resetSeverityToAtLeast ( int  severity)
inline

Definition at line 66 of file DAEstatus.h.

References compareLE(), and m_severity.

int DAEstatus_message::resetSeverityToAtMost ( int  severity)
inline

Definition at line 57 of file DAEstatus.h.

References compareLE(), and m_severity.

std::string DAEstatus_message::str ( ) const
inline

Definition at line 82 of file DAEstatus.h.

References m_text.

Referenced by print(), ISISinstrumentControl::sqliteReportFunction(), and status_reporter().

std::string DAEstatus_message::timeStr ( bool  format_with_T) const
inline

Definition at line 75 of file DAEstatus.h.

References m_time, and make_iso_time().

Referenced by print().

Friends And Related Function Documentation

friend class DAEstatus
friend

Definition at line 10 of file DAEstatus.h.

Member Data Documentation

int DAEstatus_message::m_errtype
private

Definition at line 13 of file DAEstatus.h.

int DAEstatus_message::m_facility
private

Definition at line 14 of file DAEstatus.h.

int DAEstatus_message::m_severity
private
std::string DAEstatus_message::m_text
private

Definition at line 15 of file DAEstatus.h.

Referenced by DAEstatus_message(), and str().

time_t DAEstatus_message::m_time
private

Definition at line 16 of file DAEstatus.h.

Referenced by DAEstatus_message(), and timeStr().


The documentation for this class was generated from the following files: