Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
canopen::Layer Class Referenceabstract

#include <layer.h>

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

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 ( )
inlinevirtual

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.

LayerState canopen::Layer::getLayerState ( )
inline

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)
protectedpure virtual
virtual void canopen::Layer::handleHalt ( LayerStatus status)
protectedpure virtual
virtual void canopen::Layer::handleInit ( LayerStatus status)
protectedpure virtual
virtual void canopen::Layer::handleRead ( LayerStatus status,
const LayerState current_state 
)
protectedpure virtual
virtual void canopen::Layer::handleRecover ( LayerStatus status)
protectedpure virtual
virtual void canopen::Layer::handleShutdown ( LayerStatus status)
protectedpure virtual
virtual void canopen::Layer::handleWrite ( LayerStatus status,
const LayerState current_state 
)
protectedpure 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 Sat May 4 2019 02:40:43