Logger.h File Reference
#include <mc_rtc/log/utils.h>
#include <mc_rtc/logging.h>
#include <mc_rtc/utils_api.h>
#include <mc_rtc/Configuration.h>
#include <memory>
#include <unordered_map>
#include <variant>
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mc_rtc::Logger
 Logs controller data to disk. More...
 
struct  mc_rtc::Logger::KeyAddedEvent
 Data for a key added event. More...
 
struct  mc_rtc::Logger::KeyRemovedEvent
 Data for a key removed event. More...
 
struct  mc_rtc::Logger::GUIEvent
 GUI callback event. More...
 
struct  mc_rtc::Logger::StartEvent
 Start event. More...
 
struct  mc_rtc::Logger::Meta
 Log meta data written in the first call to log after a call to \start. More...
 

Namespaces

 mc_rtc
 

Macros

#define MC_RTC_LOG_HELPER(NAME, MEMBER)
 
#define MC_RTC_LOG_GETTER(NAME, METHOD)
 

Macro Definition Documentation

◆ MC_RTC_LOG_GETTER

#define MC_RTC_LOG_GETTER (   NAME,
  METHOD 
)
Value:
do { \
using MethodRetT = decltype(this->METHOD()); \
logger.addLogEntry(NAME, this, [this]() -> MethodRetT { return METHOD(); }); \
} while(0)

Helper to log ambiguous getter methods

◆ MC_RTC_LOG_HELPER

#define MC_RTC_LOG_HELPER (   NAME,
  MEMBER 
)
Value:
do { \
using ThisT = typename std::remove_pointer<decltype(this)>::type; \
logger.addLogEntry<decltype(&ThisT::MEMBER), &ThisT::MEMBER>(NAME, this); \
} while(0)

Helper to log members or methods with "this" source to the logger variable

MEMBER
#define MEMBER(...)
Definition: ForceSensorCalibData.h:11