OpcUaCanOpen
CANopen OPC-UA server
CanOpen::UaCanTrace Class Reference

A class used for trace outputs (PDO, SDO,...). More...

#include <UaCanTrace.h>

Inherits UaTrace, and BaseVariableType.

Classes

struct  pdomes
 
struct  sdomes
 

Public Member Functions

 UaCanTrace (const UaNodeId &nodeId, const UaString &name, OpcUa_UInt16 browseNameNameSpaceIndex, const UaVariant &initialValue, OpcUa_Byte accessLevel, NodeManagerConfig *pNodeConfig)
 Definition of the TraceFunction Enumeration. More...
 
virtual ~UaCanTrace ()
 destruction More...
 

Static Public Member Functions

static void putTraceFunctions (OpcUa_UInt32)
 Initialize the trace. More...
 
static void initTraceComponent ()
 

Static Public Attributes

static std::map< int, Log::LogComponentHandlem_CanTraceComponent
 

Friends

std::ostream & operator<< (std::ostream &o, const pdomes &ps)
 
std::ostream & operator<< (std::ostream &o, const sdomes &ps)
 

Detailed Description

A class used for trace outputs (PDO, SDO,...).

Definition at line 28 of file UaCanTrace.h.

Constructor & Destructor Documentation

◆ UaCanTrace()

CanOpen::UaCanTrace::UaCanTrace ( const UaNodeId &  nodeId,
const UaString &  name,
OpcUa_UInt16  browseNameNameSpaceIndex,
const UaVariant &  initialValue,
OpcUa_Byte  accessLevel,
NodeManagerConfig *  pNodeConfig 
)

Definition of the TraceFunction Enumeration.

construction

Definition at line 34 of file UaCanTrace.cpp.

◆ ~UaCanTrace()

CanOpen::UaCanTrace::~UaCanTrace ( )
virtual

destruction

Definition at line 68 of file UaCanTrace.cpp.

Member Function Documentation

◆ initTraceComponent()

void CanOpen::UaCanTrace::initTraceComponent ( )
static

Definition at line 49 of file UaCanTrace.cpp.

◆ putTraceFunctions()

void CanOpen::UaCanTrace::putTraceFunctions ( OpcUa_UInt32  ctf)
static

Initialize the trace.

Parameters
maxTraceEntriesthe maximum of trace entries.
NumBackupFilesthe number of all backup files.
traceFilethe file where the trace will be printed out.
appNamethe application name.
Returns
the initialized trace. Change the trace settings.
Parameters
maxTraceEntriesthe maximum number of trace entries.
NumBackupFilesthe number of all backup files.
traceFilethe file where the trace will be printed in.
Returns
the trace settings. Get the trace level.
the trace level.Set the trace function.Set the trace function.

Definition at line 196 of file UaCanTrace.cpp.

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream& operator<< ( std::ostream &  o,
const pdomes ps 
)
friend

Definition at line 68 of file UaCanTrace.h.

◆ operator<< [2/2]

std::ostream& operator<< ( std::ostream &  o,
const sdomes ps 
)
friend

Definition at line 77 of file UaCanTrace.h.

Member Data Documentation

◆ m_CanTraceComponent

std::map< int, Log::LogComponentHandle > CanOpen::UaCanTrace::m_CanTraceComponent
static

Definition at line 90 of file UaCanTrace.h.


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