////////////////////////////////////////////////////////////////////////// AddDependency //////////////////////////////////////////////////////////////////////////
| 344 | // AddDependency |
| 345 | /////////////////////////////////////////////////////////////////////////////// |
| 346 | void cCmdLineParser::AddDependency(int argId1, int argId2, bool mutual) |
| 347 | { |
| 348 | // again, no checking for duplicates... would a set |
| 349 | // prove to be a better container for this operation? |
| 350 | std::pair<int, int> Args(argId1, argId2); |
| 351 | std::pair<std::pair<int, int>, bool> Dep(Args, mutual); |
| 352 | |
| 353 | ASSERT(argId1 != argId2); |
| 354 | mDependencyList.push_back(Dep); |
| 355 | } |
| 356 | |
| 357 | /////////////////////////////////////////////////////////////////////////////// |
| 358 | // TraceContents |