libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

FileEventTracer Class Reference

FileEventTracer Class Reference

This interface implements a POSIX compliant file based IEventTracer interface. More...

#include <file_event_tracer.hpp>

Inherits uavcan::dynamic_node_id_server::IEventTracer.

Inherited by EventTracer.

Public Member Functions

int init (const PathString &path)
 Initializes the file based event tracer.
virtual void onEvent (TraceCode event_code, int64_t event_argument)=0
 The server invokes this method every time it believes that a noteworthy event has happened.

Static Public Member Functions

static const char * getEventName (TraceCode code)
 It is safe to call this function with any argument.

Detailed Description

This interface implements a POSIX compliant file based IEventTracer interface.

Definition at line 25 of file file_event_tracer.hpp.


Member Function Documentation

static const char* getEventName ( TraceCode  code ) [static, inherited]

It is safe to call this function with any argument.

If the event code is out of range, an assertion failure will be triggered and an error text will be returned.

Definition at line 98 of file event.hpp.

int init ( const PathString path )

Initializes the file based event tracer.

Definition at line 78 of file file_event_tracer.hpp.

virtual void onEvent ( TraceCode  event_code,
int64_t  event_argument 
) [pure virtual, inherited]

The server invokes this method every time it believes that a noteworthy event has happened.

It is guaranteed that event code values will never change, but new ones can be added in future. This ensures full backward compatibility.

Parameters:
event_codeEvent code, see the sources for the enum with values.
event_argumentValue associated with the event; its meaning depends on the event code.