| 188 | Config::FEDERATE_WITH_OPTION(ACE_TEXT("-FederateWith")); |
| 189 | |
| 190 | Config::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 | |
| 212 | Config::~Config() |
| 213 | { |
nothing calls this directly
no test coverage detected