MIRA
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ErrorMemory Class Referenceabstract

#include <functionblock/ErrorMemory.h>

Inheritance diagram for ErrorMemory:
Inheritance graph
[legend]

Classes

struct  ErrorInfo
 Information for one error in the error memory. More...
 
struct  ModuleInfo
 Basic module information (versions, etc.) for an error report. More...
 
struct  Report
 An error report. More...
 

Public Member Functions

uint32 getErrorCount () const
 
Time getLastErrorTime () const
 
ErrorInfo getErrorInfo (uint32 idx) const
 
Report readoutErrorMemory () const
 
void exportErrorMemoryToFile (const std::string &path)
 
void clearErrorMemory ()
 
void addErrorCode (uint32 code, const std::string &name)
 
Class const & getClass () const
 
Constructor, destructor and reflect
 ErrorMemory ()
 
 ErrorMemory (const std::string &rpcPrefix)
 
virtual ~ErrorMemory ()
 
template<typename Reflector >
void reflect (Reflector &r)
 Reflect for serialization. More...
 
Other functions
void checkFunctionBlockID ()
 

Static Public Member Functions

static PseudoClass const & CLASS ()
 

Public Attributes

uint32 functionBlockID
 ID of the function block. More...
 
uint8 nodeID
 ID of the can node. More...
 
uint16 index
 Index. More...
 
mira::can::CANOpenSDOClientPtr sdoClient
 

Protected Member Functions

virtual Class const & internalGetClass () const=0
 

Constructor & Destructor Documentation

◆ ErrorMemory() [1/2]

ErrorMemory ( )
inline

◆ ErrorMemory() [2/2]

ErrorMemory ( const std::string &  rpcPrefix)
inline

◆ ~ErrorMemory()

virtual ~ErrorMemory ( )
inlinevirtual

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

Reflect for serialization.

◆ getErrorCount()

uint32 getErrorCount ( ) const

◆ getLastErrorTime()

Time getLastErrorTime ( ) const

◆ getErrorInfo()

ErrorInfo getErrorInfo ( uint32  idx) const

◆ readoutErrorMemory()

Report readoutErrorMemory ( ) const

◆ exportErrorMemoryToFile()

void exportErrorMemoryToFile ( const std::string &  path)

◆ clearErrorMemory()

void clearErrorMemory ( )

◆ addErrorCode()

void addErrorCode ( uint32  code,
const std::string &  name 
)

◆ checkFunctionBlockID()

void checkFunctionBlockID ( )
inherited

Member Data Documentation

◆ functionBlockID

uint32 functionBlockID
inherited

ID of the function block.

◆ nodeID

uint8 nodeID
inherited

ID of the can node.

◆ index

uint16 index
inherited

Index.

Pointer to the SDO client

◆ sdoClient

mira::can::CANOpenSDOClientPtr sdoClient
inherited

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