Apollo  6.0
Open source self driving car software
Classes | Namespaces | Macros
ft_config_manager.h File Reference
#include <map>
#include <string>
#include <boost/function.hpp>
#include "modules/v2x/proto/fusion_params.pb.h"
#include "cyber/cyber.h"
#include "modules/v2x/fusion/configs/fusion_tracker_gflags.h"
Include dependency graph for ft_config_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  apollo::v2x::ft::FTConfigManager
 

Namespaces

 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::v2x
 
 apollo::v2x::ft
 

Macros

#define PLUGIN_PARAMS(classname, conf_file, prototype)
 

Macro Definition Documentation

◆ PLUGIN_PARAMS

#define PLUGIN_PARAMS (   classname,
  conf_file,
  prototype 
)
Value:
class classname { \
public: \
classname() { \
file_path_ = FLAGS_config_path + "/" + conf_file; \
cyber::common::GetProtoFromFile(file_path_, &params); \
} \
~classname() { cyber::common::SetProtoToASCIIFile(params, file_path_); } \
prototype params; \
\
private: \
std::string file_path_; \
};
bool SetProtoToASCIIFile(const google::protobuf::Message &message, int file_descriptor)
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs, and merges the parsed content to the proto.