#include <segment_factory.h>
◆ CreateSegment()
auto apollo::cyber::transport::SegmentFactory::CreateSegment |
( |
uint64_t |
channel_id | ) |
|
|
static |
在文件 segment_factory.cc 第 33 行定义.
33 {
35 auto& shm_conf = GlobalData::Instance()->Config();
36 if (shm_conf.has_transport_conf() &&
37 shm_conf.transport_conf().has_shm_conf() &&
38 shm_conf.transport_conf().shm_conf().has_shm_type()) {
39 segment_type = shm_conf.transport_conf().shm_conf().shm_type();
40 }
41
42 ADEBUG <<
"segment type: " << segment_type;
43
45 return std::make_shared<PosixSegment>(channel_id);
46 }
47
48 return std::make_shared<XsiSegment>(channel_id);
49}
static const char * Type()
static const char * Type()
该类的文档由以下文件生成: