Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
canopen::Logger Class Reference

#include <ros_chain.h>

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

Public Member Functions

bool add (uint8_t level, const std::string &key, bool forced)
 
template<typename T >
void add (const boost::shared_ptr< T > &n)
 
virtual void log (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
 Logger (canopen::NodeSharedPtr node)
 
virtual ~Logger ()
 
- Public Member Functions inherited from canopen::DiagGroup< canopen::Layer >
virtual void diag (LayerReport &report)
 
- Public Member Functions inherited from canopen::VectorHelper< T >
bool callFunc (FuncType func, Data &status)
 

Static Private Member Functions

static void log_entry (diagnostic_updater::DiagnosticStatusWrapper &stat, uint8_t level, const std::string &name, boost::function< std::string()> getter)
 

Private Attributes

std::vector< boost::function< void(diagnostic_updater::DiagnosticStatusWrapper &)> > entries_
 
const canopen::NodeSharedPtr node_
 

Additional Inherited Members

- Public Types inherited from canopen::VectorHelper< T >
typedef boost::shared_ptr< T > VectorMemberSharedPtr
 
- Protected Types inherited from canopen::VectorHelper< T >
typedef std::vector< VectorMemberSharedPtrvector_type
 
- Protected Member Functions inherited from canopen::VectorHelper< T >
vector_type::iterator call (FuncType func, Data &status)
 
vector_type::iterator call (FuncType func, Data &status)
 
vector_type::reverse_iterator call_rev (FuncType func, Data &status)
 
vector_type::reverse_iterator call_rev (FuncType func, Data &status)
 
void destroy ()
 

Detailed Description

Definition at line 61 of file ros_chain.h.

Constructor & Destructor Documentation

canopen::Logger::Logger ( canopen::NodeSharedPtr  node)
inline

Definition at line 77 of file ros_chain.h.

virtual canopen::Logger::~Logger ( )
inlinevirtual

Definition at line 112 of file ros_chain.h.

Member Function Documentation

bool canopen::Logger::add ( uint8_t  level,
const std::string &  key,
bool  forced 
)
inline

Definition at line 79 of file ros_chain.h.

template<typename T >
void canopen::Logger::add ( const boost::shared_ptr< T > &  n)
inlinevirtual

Reimplemented from canopen::VectorHelper< T >.

Definition at line 93 of file ros_chain.h.

virtual void canopen::Logger::log ( diagnostic_updater::DiagnosticStatusWrapper stat)
inlinevirtual

Definition at line 97 of file ros_chain.h.

static void canopen::Logger::log_entry ( diagnostic_updater::DiagnosticStatusWrapper stat,
uint8_t  level,
const std::string &  name,
boost::function< std::string()>  getter 
)
inlinestaticprivate

Definition at line 66 of file ros_chain.h.

Member Data Documentation

std::vector<boost::function< void (diagnostic_updater::DiagnosticStatusWrapper &)> > canopen::Logger::entries_
private

Definition at line 64 of file ros_chain.h.

const canopen::NodeSharedPtr canopen::Logger::node_
private

Definition at line 62 of file ros_chain.h.


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


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