Apollo 10.0
自动驾驶开放平台
apollo::cyber::transport::NotifierFactory类 参考

#include <notifier_factory.h>

apollo::cyber::transport::NotifierFactory 的协作图:

静态 Public 成员函数

static NotifierPtr CreateNotifier ()
 

详细描述

在文件 notifier_factory.h28 行定义.

成员函数说明

◆ CreateNotifier()

auto apollo::cyber::transport::NotifierFactory::CreateNotifier ( )
static

在文件 notifier_factory.cc32 行定义.

32 {
33 std::string notifier_type(ConditionNotifier::Type());
34 auto& g_conf = GlobalData::Instance()->Config();
35 if (g_conf.has_transport_conf() && g_conf.transport_conf().has_shm_conf() &&
36 g_conf.transport_conf().shm_conf().has_notifier_type()) {
37 notifier_type = g_conf.transport_conf().shm_conf().notifier_type();
38 }
39
40 ADEBUG << "notifier type: " << notifier_type;
41
42 if (notifier_type == MulticastNotifier::Type()) {
43 return CreateMulticastNotifier();
44 } else if (notifier_type == ConditionNotifier::Type()) {
45 return CreateConditionNotifier();
46 }
47
48 AINFO << "unknown notifier, we use default notifier: " << notifier_type;
49 return CreateConditionNotifier();
50}
#define ADEBUG
Definition log.h:41
#define AINFO
Definition log.h:42

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