Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes
canopen::Layer Class Reference

#include <layer.h>

Inheritance diagram for canopen::Layer:
Inheritance graph
[legend]

List of all members.

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 &current_state)=0
virtual void handleRecover (LayerStatus &status)=0
virtual void handleShutdown (LayerStatus &status)=0
virtual void handleWrite (LayerStatus &status, const LayerState &current_state)=0

Private Attributes

boost::atomic< LayerStatestate

Detailed Description

Definition at line 62 of file layer.h.


Member Enumeration Documentation

Enumerator:
Off 
Init 
Shutdown 
Error 
Halt 
Recover 
Ready 

Definition at line 64 of file layer.h.


Constructor & Destructor Documentation

canopen::Layer::Layer ( const std::string &  n) [inline]

Definition at line 126 of file layer.h.

virtual canopen::Layer::~Layer ( ) [inline, virtual]

Definition at line 128 of file layer.h.


Member Function Documentation

void canopen::Layer::diag ( LayerReport report) [inline]

Definition at line 82 of file layer.h.

Definition at line 124 of file layer.h.

void canopen::Layer::halt ( LayerStatus status) [inline]

Definition at line 102 of file layer.h.

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]

Definition at line 85 of file layer.h.

void canopen::Layer::read ( LayerStatus status) [inline]

Definition at line 76 of file layer.h.

void canopen::Layer::recover ( LayerStatus status) [inline]

Definition at line 109 of file layer.h.

void canopen::Layer::shutdown ( LayerStatus status) [inline]

Definition at line 95 of file layer.h.

void canopen::Layer::write ( LayerStatus status) [inline]

Definition at line 79 of file layer.h.


Member Data Documentation

const std::string canopen::Layer::name

Definition at line 74 of file layer.h.

boost::atomic<LayerState> canopen::Layer::state [private]

Definition at line 143 of file layer.h.


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


canopen_master
Author(s): Mathias L├╝dtke
autogenerated on Sun Sep 3 2017 03:10:42