Apollo  6.0
Open source self driving car software
Classes | Namespaces | Macros
monitor_log_buffer.h File Reference

The class of MonitorLogBuffer. More...

#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "gtest/gtest_prod.h"
#include "modules/common/monitor_log/monitor_logger.h"
#include "modules/common/monitor_log/proto/monitor_log.pb.h"
Include dependency graph for monitor_log_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  apollo::common::monitor::MonitorLogBuffer
 This class help collect MonitorMessage pb to monitor topic. The messages can be published automatically when the MonitorBuffer object's destructor is called, or can be published by calling function Publish(). More...
 

Namespaces

 apollo::common::monitor
 apollo::common::monitor
 
 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::common
 apollo::common
 

Macros

#define REG_MSG_TYPE(TYPE)
 

Detailed Description

The class of MonitorLogBuffer.

Macro Definition Documentation

◆ REG_MSG_TYPE

#define REG_MSG_TYPE (   TYPE)
Value:
MonitorLogBuffer &TYPE(const std::string &msg) { \
AddMonitorMsgItem(MonitorMessageItem::TYPE, msg); \
Publish(); \
return *this; \
} \
MonitorLogBuffer &TYPE() { \
level_ = MonitorMessageItem::TYPE; \
return *this; \
}