void CommandLine::AppendArguments(const CommandLine& other, bool include_program) { if(include_program) { SetProgram(other.GetProgram()); } AppendSwitchesAndArguments(*this, other.argv()); }
void CommandLineModuleManagerTestBase::initManager( const CommandLine &args, const char *realBinaryName) { impl_->manager_.reset(); impl_->programContext_.reset( new gmx::CommandLineProgramContext(args.argc(), args.argv())); impl_->manager_.reset(new gmx::CommandLineModuleManager( realBinaryName, impl_->programContext_.get())); impl_->manager_->setQuiet(true); impl_->manager_->setOutputRedirector(&impl_->redirector_); }
int SimulationRunner::callGromppOnThisRank() { CommandLine caller; caller.append("grompp"); caller.addOption("-f", mdpInputFileName_); caller.addOption("-n", ndxFileName_); caller.addOption("-p", topFileName_); caller.addOption("-c", groFileName_); caller.addOption("-po", mdpOutputFileName_); caller.addOption("-o", tprFileName_); return gmx_grompp(caller.argc(), caller.argv()); }
CommandLine::CommandLine(const CommandLine &other) : impl_(new Impl(other.argv(), other.argc())) { }