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
 
template<typename T >
bool equals () 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_
 
std::atomic< Statestate
 
boost::mutex write_mutex_
 

Detailed Description

Definition at line 12 of file layer.h.

Member Enumeration Documentation

◆ State

Enumerator
OK 
WARN 
ERROR 
STALE 
UNBOUNDED 

Definition at line 14 of file layer.h.

Constructor & Destructor Documentation

◆ LayerStatus()

canopen::LayerStatus::LayerStatus ( )
inline

Definition at line 38 of file layer.h.

Member Function Documentation

◆ bounded()

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

Definition at line 35 of file layer.h.

◆ equals()

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

Definition at line 36 of file layer.h.

◆ error()

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

Definition at line 45 of file layer.h.

◆ get()

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

Definition at line 40 of file layer.h.

◆ reason()

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

Definition at line 42 of file layer.h.

◆ set()

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

Definition at line 20 of file layer.h.

◆ stale()

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

Definition at line 46 of file layer.h.

◆ warn()

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

Definition at line 44 of file layer.h.

Member Data Documentation

◆ reason_

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

Definition at line 18 of file layer.h.

◆ state

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

Definition at line 17 of file layer.h.

◆ write_mutex_

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 Mon Feb 28 2022 23:28:03