#include <layer.h>
Public Types | |
enum | LayerState { Off, Init, Shutdown, Error, Halt, Recover, Ready } |
Public Member Functions | |
void | diag (LayerReport &report) |
LayerState | getLayerState () |
void | halt (LayerStatus &status) |
void | init (LayerStatus &status) |
Layer (const std::string &n) | |
void | read (LayerStatus &status) |
void | recover (LayerStatus &status) |
void | shutdown (LayerStatus &status) |
void | write (LayerStatus &status) |
virtual | ~Layer () |
Public Attributes | |
const std::string | name |
Protected Member Functions | |
virtual void | handleDiag (LayerReport &report)=0 |
virtual void | handleHalt (LayerStatus &status)=0 |
virtual void | handleInit (LayerStatus &status)=0 |
virtual void | handleRead (LayerStatus &status, const LayerState ¤t_state)=0 |
virtual void | handleRecover (LayerStatus &status)=0 |
virtual void | handleShutdown (LayerStatus &status)=0 |
virtual void | handleWrite (LayerStatus &status, const LayerState ¤t_state)=0 |
Private Attributes | |
boost::atomic< LayerState > | state |
canopen::Layer::Layer | ( | const std::string & | n | ) | [inline] |
virtual canopen::Layer::~Layer | ( | ) | [inline, virtual] |
void canopen::Layer::diag | ( | LayerReport & | report | ) | [inline] |
LayerState canopen::Layer::getLayerState | ( | ) | [inline] |
void canopen::Layer::halt | ( | LayerStatus & | status | ) | [inline] |
virtual void canopen::Layer::handleDiag | ( | LayerReport & | report | ) | [protected, pure virtual] |
virtual void canopen::Layer::handleHalt | ( | LayerStatus & | status | ) | [protected, pure virtual] |
virtual void canopen::Layer::handleInit | ( | LayerStatus & | status | ) | [protected, pure virtual] |
virtual void canopen::Layer::handleRead | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [protected, pure virtual] |
virtual void canopen::Layer::handleRecover | ( | LayerStatus & | status | ) | [protected, pure virtual] |
virtual void canopen::Layer::handleShutdown | ( | LayerStatus & | status | ) | [protected, pure virtual] |
virtual void canopen::Layer::handleWrite | ( | LayerStatus & | status, |
const LayerState & | current_state | ||
) | [protected, pure virtual] |
void canopen::Layer::init | ( | LayerStatus & | status | ) | [inline] |
void canopen::Layer::read | ( | LayerStatus & | status | ) | [inline] |
void canopen::Layer::recover | ( | LayerStatus & | status | ) | [inline] |
void canopen::Layer::shutdown | ( | LayerStatus & | status | ) | [inline] |
void canopen::Layer::write | ( | LayerStatus & | status | ) | [inline] |
const std::string canopen::Layer::name |
boost::atomic<LayerState> canopen::Layer::state [private] |