Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
canopen::LayerStatus Class Reference

#include <layer.h>

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

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< Statestate
 
boost::mutex write_mutex_
 

Detailed Description

Definition at line 12 of file layer.h.

Member Enumeration Documentation

Enumerator
OK 
WARN 
ERROR 
STALE 
UNBOUNDED 

Definition at line 14 of file layer.h.

Constructor & Destructor Documentation

canopen::LayerStatus::LayerStatus ( )
inline

Definition at line 37 of file layer.h.

Member Function Documentation

template<typename T >
bool canopen::LayerStatus::bounded ( ) const
inline

Definition at line 35 of file layer.h.

const void canopen::LayerStatus::error ( const std::string &  r)
inline

Definition at line 44 of file layer.h.

int canopen::LayerStatus::get ( ) const
inline

Definition at line 39 of file layer.h.

const std::string canopen::LayerStatus::reason ( ) const
inline

Definition at line 41 of file layer.h.

virtual void canopen::LayerStatus::set ( const State s,
const std::string &  r 
)
inlineprivatevirtual

Definition at line 20 of file layer.h.

const void canopen::LayerStatus::stale ( const std::string &  r)
inline

Definition at line 45 of file layer.h.

const void canopen::LayerStatus::warn ( const std::string &  r)
inline

Definition at line 43 of file layer.h.

Member Data Documentation

std::string canopen::LayerStatus::reason_
private

Definition at line 18 of file layer.h.

boost::atomic<State> canopen::LayerStatus::state
private

Definition at line 17 of file layer.h.

boost::mutex canopen::LayerStatus::write_mutex_
mutableprivate

Definition at line 13 of file layer.h.


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


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:41