MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / Config

Method Config

dds/InfoRepo/FederatorConfig.cpp:190–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188Config::FEDERATE_WITH_OPTION(ACE_TEXT("-FederateWith"));
189
190Config::Config(int argc, ACE_TCHAR** argv)
191 : argc_(0),
192 federationId_(hash_endpoints(argc, argv)),
193 federationDomain_(DEFAULT_FEDERATIONDOMAIN),
194 federationPort_(-1)
195{
196 if (::OpenDDS::DCPS::DCPS_debug_level > 0) {
197 ACE_DEBUG((LM_DEBUG,
198 ACE_TEXT("(%P|%t) INFO: Federator::Config::Config()\n")));
199 }
200
201 // Setup the internal storage.
202 this->argv_ = new ACE_TCHAR*[static_cast<size_t>(argc) + 1](); // argv_[argc] == 0
203
204 // Process the federation arguments. Copy the uninteresting arguments verbatim.
205 ArgCopier argCopier(this);
206 std::for_each(&argv[0], &argv[argc], argCopier);
207
208 // Read and process any configuration file.
209 this->processFile();
210}
211
212Config::~Config()
213{

Callers

nothing calls this directly

Calls 2

processFileMethod · 0.95
hash_endpointsFunction · 0.85

Tested by

no test coverage detected