PVData C++
8.0.6
|
#include <misc/pv/status.h>
Public Types | |
enum | StatusType { STATUSTYPE_OK, STATUSTYPE_WARNING, STATUSTYPE_ERROR, STATUSTYPE_FATAL } |
typedef std::tr1::shared_ptr < Status > | shared_pointer |
typedef std::tr1::shared_ptr < const Status > | const_shared_pointer |
typedef std::tr1::weak_ptr < Status > | weak_pointer |
typedef std::tr1::weak_ptr < const Status > | const_weak_pointer |
Public Member Functions | |
Status () | |
Status (StatusType type, std::string const &message) | |
Status (StatusType type, std::string const &message, std::string const &stackDump) | |
StatusType | getType () const |
const std::string & | getMessage () const |
const std::string & | getStackDump () const |
bool | isOK () const |
bool | isSuccess () const |
operator truth_type () const | |
void | maximize (const Status &o) |
Status & | operator|= (const Status &o) |
short hand for "this->maximize(o)" | |
void | serialize (ByteBuffer *buffer, SerializableControl *flusher) const |
void | deserialize (ByteBuffer *buffer, DeserializableControl *flusher) |
void | dump (std::ostream &o) const |
Public Member Functions inherited from epics::pvData::Serializable | |
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 [] |
static Status | Ok |
Status type enum.
|
inline |
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.
|
virtual |
Deserialize buffer.
buffer | serialization buffer. |
flusher | deserialization control. |
Implements epics::pvData::Serializable.
|
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
.
|
inline |
void epics::pvData::Status::maximize | ( | const Status & | o | ) |
|
virtual |
Serialize field into given buffer.
buffer | serialization buffer. |
flusher | flush interface. |
Implements epics::pvData::Serializable.