值: class classname { \
public: \
classname() { \
file_path_ = FLAGS_config_path + "/" + conf_file; \
cyber::common::GetProtoFromFile(file_path_, ¶ms); \
} \
~classname() { cyber::common::SetProtoToASCIIFile(params, file_path_); } \
prototype params; \
\
private: \
std::string file_path_; \
};
在文件 ft_config_manager.h 第 29 行定义.
30 { \
31 public: \
32 classname() { \
33 file_path_ = FLAGS_config_path + "/" + conf_file; \
34 cyber::common::GetProtoFromFile(file_path_, ¶ms); \
35 } \
36 ~classname() { cyber::common::SetProtoToASCIIFile(params, file_path_); } \
37 prototype params; \
38 \
39 private: \
40 std::string file_path_; \
41 };