![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include "status.h"
Public Types | |
enum | StatusType { STATUSTYPE_OK, STATUSTYPE_WARNING, STATUSTYPE_ERROR, STATUSTYPE_FATAL } |
Public Member Functions | |
POINTER_DEFINITIONS (Status) | |
Status () | |
Status (StatusType type, std::string const &message) | |
Status (StatusType type, std::string const &message, std::string const &stackDump) | |
virtual | ~Status () |
StatusType | getType () const |
const std::string & | getMessage () const |
const std::string & | getStackDump () const |
bool | isOK () const |
bool | isSuccess () const |
FORCE_INLINE | operator truth_type () const |
void | maximize (const Status &o) |
FORCE_INLINE Status & | operator|= (const Status &o) |
short hand for "this->maximize(o)" More... | |
void | serialize (ByteBuffer *buffer, SerializableControl *flusher) const |
void | deserialize (ByteBuffer *buffer, DeserializableControl *flusher) |
void | dump (std::ostream &o) const |
![]() | |
virtual | ~Serializable () |
Static Public Member Functions | |
static Status | warn (const std::string &m) |
static Status | error (const std::string &m) |
static Status | fatal (const std::string &m) |
Static Public Attributes | |
static const char * | StatusTypeName [] = { "OK", "WARNING", "ERROR", "FATAL" } |
static Status | Ok |
Status type enum.
Definition at line 34 of file status.h.
|
inline |
Creates OK status; STATUSTYPE_OK, empty message and stackDump.
Definition at line 56 of file status.h.
epics::pvData::Status::Status | ( | StatusType | type, |
std::string const & | message | ||
) |
Create non-OK status.
epics::pvData::Status::Status | ( | StatusType | type, |
std::string const & | message, | ||
std::string const & | stackDump | ||
) |
Create non-OK status.
|
inlinevirtual |
|
virtual |
Deserialize buffer.
buffer | serialization buffer. |
flusher | deserialization control. |
Implements epics::pvData::Serializable.
Definition at line 61 of file status.cpp.
void epics::pvData::Status::dump | ( | std::ostream & | o | ) | const |
Definition at line 83 of file status.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Convenient OK test. Same as (getType() == StatusType.OK)
. NOTE: this will return false
on WARNING message although operation succeeded. To check if operation succeeded, use isSuccess
.
Definition at line 95 of file status.h.
|
inline |
Check if operation succeeded (OK or WARNING).
Definition at line 103 of file status.h.
void epics::pvData::Status::maximize | ( | const Status & | o | ) |
override this Status if the other has higher StatusType
Definition at line 36 of file status.cpp.
|
inline |
|
inline |
epics::pvData::Status::POINTER_DEFINITIONS | ( | Status | ) |
|
virtual |
Serialize field into given buffer.
buffer | serialization buffer. |
flusher | flush interface. |
Implements epics::pvData::Serializable.
Definition at line 45 of file status.cpp.
|
static |