#include <layer.h>
Classes | |
struct | Error |
struct | Ok |
struct | Stale |
struct | Unbounded |
struct | Warn |
Public Member Functions | |
template<typename T > | |
bool | bounded () const |
const void | error (const std::string &r) |
int | get () const |
LayerStatus () | |
const std::string | reason () const |
const void | stale (const std::string &r) |
const void | warn (const std::string &r) |
Private Types | |
enum | State { OK = 0, WARN = 1, ERROR = 2, STALE = 3, UNBOUNDED = 3 } |
Private Member Functions | |
virtual void | set (const State &s, const std::string &r) |
Private Attributes | |
std::string | reason_ |
boost::atomic< State > | state |
boost::mutex | write_mutex_ |
enum canopen::LayerStatus::State [private] |
canopen::LayerStatus::LayerStatus | ( | ) | [inline] |
bool canopen::LayerStatus::bounded | ( | ) | const [inline] |
const void canopen::LayerStatus::error | ( | const std::string & | r | ) | [inline] |
int canopen::LayerStatus::get | ( | ) | const [inline] |
const std::string canopen::LayerStatus::reason | ( | ) | const [inline] |
virtual void canopen::LayerStatus::set | ( | const State & | s, |
const std::string & | r | ||
) | [inline, private, virtual] |
const void canopen::LayerStatus::stale | ( | const std::string & | r | ) | [inline] |
const void canopen::LayerStatus::warn | ( | const std::string & | r | ) | [inline] |
std::string canopen::LayerStatus::reason_ [private] |
boost::atomic<State> canopen::LayerStatus::state [private] |
boost::mutex canopen::LayerStatus::write_mutex_ [mutable, private] |