Merge pull request #3835 from simpsont-oci/bench_config_name
[OpenDDS.git] / performance-tests / bench / builder / BuilderProcess.cpp
blob0406bb49c6d77a23cd84e51e688b3e0a1bb66285
1 #include "BuilderProcess.h"
3 #include "dds/DCPS/Service_Participant.h"
5 namespace Builder {
7 BuilderProcess::BuilderProcess(const ProcessConfig& config)
8 : config_sections_(std::make_shared<ConfigSectionManager>(config.name.in(), config.config_sections))
9 , participants_(std::make_shared<ParticipantManager>(config.participants, report_.participants, reader_map_, writer_map_, cft_map_))
13 BuilderProcess::~BuilderProcess()
15 reader_map_.clear();
16 writer_map_.clear();
17 cft_map_.clear();
19 participants_.reset();
20 TheServiceParticipant->shutdown();
21 config_sections_.reset();
24 void BuilderProcess::detach_listeners()
26 participants_->detach_listeners();
29 bool BuilderProcess::enable_dds_entities(bool throw_on_error)
31 return participants_->enable(throw_on_error);