Apollo 10.0
自动驾驶开放平台
apollo::bridge::ProtoDiserializedBufBaseFactory类 参考

#include <bridge_proto_diser_buf_factory.h>

apollo::bridge::ProtoDiserializedBufBaseFactory 的协作图:

静态 Public 成员函数

static std::shared_ptr< ProtoDiserializedBufBaseCreateObj (const BridgeHeader &header)
 

详细描述

在文件 bridge_proto_diser_buf_factory.h30 行定义.

成员函数说明

◆ CreateObj()

static std::shared_ptr< ProtoDiserializedBufBase > apollo::bridge::ProtoDiserializedBufBaseFactory::CreateObj ( const BridgeHeader header)
inlinestatic

在文件 bridge_proto_diser_buf_factory.h32 行定义.

33 {
34 std::shared_ptr<ProtoDiserializedBufBase> obj;
35 if (strcmp("Chassis", header.GetMsgName().c_str()) == 0) {
36 obj = std::make_shared<BridgeProtoDiserializedBuf<canbus::Chassis>>(
37 FLAGS_chassis_topic);
38 }
39 return obj;
40 }

该类的文档由以下文件生成: