• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ po::options_description类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中po::options_description的典型用法代码示例。如果您正苦于以下问题:C++ options_description类的具体用法?C++ options_description怎么用?C++ options_description使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了options_description类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: _setOptions

	void _setOptions(po::options_description &desc,
			po::positional_options_description &p) {

		po::options_description usage("Usage: DistributedNucleatingAssembly <options> [[--contig-file contigs.fa] [[--input-file input.fq ...]\n\tNote: --contig-file and --input-file can be specified either as a positional argument or within the options");

		p.add("contig-file", 1);
		p.add("input-file", -1);

		desc.add(usage);

		po::options_description opts("DistributedNucleatingAssembly Options");
		opts.add_options()
					("max-iterations", po::value<int>()->default_value(maxIterations), "the maximum number of rounds to extend the set of contigs")

					("max-contigs-per-batch", po::value<int>()->default_value(maxContigsPerBatch), "the maximum number of assemblies (per mpi) to gather reads and execute per batch")

					("max-contig-length", po::value<int>()->default_value(maxContigLength), "the maximum size of a contig to continue extending");

		desc.add(opts);

		MatcherInterfaceOptions::_setOptions(desc,p);
		KmerMatchOptions::_setOptions(desc,p);
		KmerBaseOptions::_setOptions(desc,p);
		KmerSpectrumOptions::_setOptions(desc,p);
		VmatchOptions::_setOptions(desc,p);
		ContigExtenderBaseOptions::_setOptions(desc,p);
		NewblerOptions::_setOptions(desc, p);
		Cap3Options::_setOptions(desc,p);
		MPIOptions::_setOptions(desc,p);
		FilterKnownOdditiesOptions::_setOptions(desc,p);
		GeneralOptions::_setOptions(desc,p);

	};
开发者ID:JGI-Bioinformatics,项目名称:Kmernator,代码行数:33,代码来源:DistributedNucleatingAssembler.cpp


示例2: inflate_initializer

void inflate_initializer(po::options_description& inflate_desc)
{
    UtilityProgramOptions::add_help_suboption(inflate_desc);
    UtilityProgramOptions::add_desc_suboption(inflate_desc);
    UtilityProgramOptions::add_output_suboption(inflate_desc);
    inflate_desc.add_options()("structure,s", po::value<fs::path>()->required(),
                               "POS.vasp like file you want to "
                               "increase the boundaries of");
    inflate_desc.add_options()("length,l", po::value<std::vector<double>>()->multitoken()->required(),
                               "amount that each lattice vector will grow (three values "
                               "corresponding to a, b, and c)");
    return;
}
开发者ID:goirijo,项目名称:casm-utilities,代码行数:13,代码来源:inflate.cpp


示例3: struc_score_initializer

void struc_score_initializer(po::options_description& struc_score_desc)
{
    UtilityProgramOptions::add_help_suboption(struc_score_desc);
    UtilityProgramOptions::add_output_suboption(struc_score_desc);

    struc_score_desc.add_options()("reference,r", po::value<fs::path>()->required(),
                    "POS.vasp like file to use as reference structure.");
    struc_score_desc.add_options()("mappable,m", po::value<std::vector<fs::path>>()->multitoken(),
                    "POS.vasp like file(s) to map, get structure score for."); 
    struc_score_desc.add_options()("batch,b", po::value<fs::path>(),
                    "Batch file containing list of structures files to get structure score for.");    
    struc_score_desc.add_options()("weight,w", po::value<double>()->default_value(0.5),
                    "Weight w in structure score: w*lattice_score + (1-w)*basis_score."); 
    return;
}
开发者ID:goirijo,项目名称:casm-utilities,代码行数:15,代码来源:struc_score.cpp


示例4: InitOptions

    void InitOptions(po::options_description& opts, po::positional_options_description&) override {
        opts.add_options()
            ("home", po::value<std::string>()->required(), "home directory")
            ("proxy,p", po::value<std::string>()->default_value("localhost"), "proxy host")
            ;

        po::options_description indexerOpts("Lister options");

        indexerOpts.add_options()
            ("verbose,v", "use verbose mode")
            ("chunk-size", po::value<size_t>(), "custom chunk size")
            ;

        opts.add(indexerOpts);
    }
开发者ID:pavelkalinnikov,项目名称:codesearch,代码行数:15,代码来源:main.cpp


示例5: add_local_options

void NSCPClient::add_local_options(po::options_description &desc, client::configuration::data_type data) {
	desc.add_options()
 		("no-ssl,n", po::value<bool>()->zero_tokens()->default_value(false)->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_bool_data, &data->recipient, "no ssl", _1)), 
			"Do not initial an ssl handshake with the server, talk in plaintext.")

		("certificate,c", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "certificate", _1)), 
		"Length of payload (has to be same as on the server)")

		("dh", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "dh", _1)), 
		"Length of payload (has to be same as on the server)")

		("certificate-key,k", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "certificate key", _1)), 
		"Client certificate to use")

		("certificate-format", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "certificate format", _1)), 
		"Client certificate format")

		("ca", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "ca", _1)), 
		"Certificate authority")

		("verify", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "verify mode", _1)), 
		"Client certificate format")

		("allowed-ciphers", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "allowed ciphers", _1)), 
		"Client certificate format")

 		("ssl,n", po::value<bool>()->zero_tokens()->default_value(false)->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_bool_data, &data->recipient, "ssl", _1)), 
			"Initial an ssl handshake with the server.")

		("timeout", po::value<unsigned int>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_int_data, &data->recipient, "timeout", _1)), 
		"")


		;
}
开发者ID:borgified,项目名称:nscp,代码行数:35,代码来源:NSCPClient.cpp


示例6: fill_desc

void options_includes::fill_desc( po::options_description& desc )
{
	desc.add_options()
		( include_tag, po::value< vector<string> >(&includes)->composing(), include_desc )
		( sysincl_tag, po::value< vector<string> >(&sysincls)->composing(), sysincl_desc )
		;
}
开发者ID:wuye9036,项目名称:soul,代码行数:7,代码来源:options.cpp


示例7: add_local_options

void SyslogClient::add_local_options(po::options_description &desc, client::configuration::data_type data) {
	desc.add_options()
		("severity,s", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "severity", _1)), 
		"Severity of error message")

		("unknown-severity", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "unknown_severity", _1)), 
		"Severity of error message")

		("ok-severity", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "ok_severity", _1)), 
		"Severity of error message")

		("warning-severity", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "warning_severity", _1)), 
		"Severity of error message")

		("critical-severity", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "critical_severity", _1)), 
		"Severity of error message")

		("facility,f", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "facility", _1)), 
		"Facility of error message")

		("tag template", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "tag template", _1)), 
		"Tag template (TODO)")

		("message template", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "message template", _1)), 
		"Message template (TODO)")
		;
}
开发者ID:jkells,项目名称:nscp,代码行数:27,代码来源:SyslogClient.cpp


示例8:

// Private methods ----------------------------------
void
EnvironmentOptions::defineMyOptions(po::options_description& optionsDesc) const
{
#ifdef QUESO_MEMORY_DEBUGGING
    std::cout << "In EnvOptions::defineMyOptions(), before add_options()" << std::endl;
#endif
    optionsDesc.add_options()
    (m_option_help.c_str(),                                                                                                 "produce help message for  environment"       )
    (m_option_numSubEnvironments.c_str(),    po::value<unsigned int>()->default_value(UQ_ENV_NUM_SUB_ENVIRONMENTS_ODV),     "number of subEnvironments"                     )
    (m_option_subDisplayFileName.c_str(),    po::value<std::string >()->default_value(UQ_ENV_SUB_DISPLAY_FILE_NAME_ODV),    "output filename for subscreen writing"         )
    (m_option_subDisplayAllowAll.c_str(),    po::value<bool        >()->default_value(UQ_ENV_SUB_DISPLAY_ALLOW_ALL_ODV),    "Allow all processors to write to output file"  )
    (m_option_subDisplayAllowInter0.c_str(), po::value<bool        >()->default_value(UQ_ENV_SUB_DISPLAY_ALLOW_INTER0_ODV), "Allow all inter0 nodes to write to output file")
    (m_option_subDisplayAllowedSet.c_str(),  po::value<std::string >()->default_value(UQ_ENV_SUB_DISPLAY_ALLOWED_SET_ODV),  "subEnvs that will write to output file"        )
    (m_option_displayVerbosity.c_str(),      po::value<unsigned int>()->default_value(UQ_ENV_DISPLAY_VERBOSITY_ODV),        "set verbosity"                                 )
    (m_option_syncVerbosity.c_str(),         po::value<unsigned int>()->default_value(UQ_ENV_SYNC_VERBOSITY_ODV),           "set sync verbosity"                            )
    (m_option_checkingLevel.c_str(),         po::value<unsigned int>()->default_value(UQ_ENV_CHECKING_LEVEL_ODV),           "set checking level"                            )
    (m_option_rngType.c_str(),               po::value<std::string >()->default_value(UQ_ENV_RNG_TYPE_ODV),                 "set rngType"                                   )
    (m_option_seed.c_str(),                  po::value<int         >()->default_value(UQ_ENV_SEED_ODV),                     "set seed"                                      )
    (m_option_platformName.c_str(),          po::value<std::string >()->default_value(UQ_ENV_PLATFORM_NAME_ODV),            "platform name"                                 )
    (m_option_identifyingString.c_str(),     po::value<std::string >()->default_value(UQ_ENV_IDENTIFYING_STRING_ODV),       "identifying string"                            )
    //(m_option_numDebugParams.c_str(),        po::value<unsigned int>()->default_value(UQ_ENV_NUM_DEBUG_PARAMS_ODV),         "set number of debug parameters"                )
    ;
#ifdef QUESO_MEMORY_DEBUGGING
    std::cout << "In EnvOptions::defineMyOptions(), after add_options()" << std::endl;
#endif

    return;
}
开发者ID:jpasini,项目名称:queso,代码行数:29,代码来源:EnvironmentOptions.C


示例9:

// Private methods ---------------------------------
void
uqMonteCarloSGOptionsClass::defineMyOptions(po::options_description& optionsDesc) const
{
  optionsDesc.add_options()     
    (m_option_help.c_str(),                                                                                                            "produce help message for Monte Carlo distribution calculator")
    (m_option_dataOutputFileName.c_str(),        po::value<std::string >()->default_value(UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV       ), "name of generic data output file"                            )
    (m_option_dataOutputAllowedSet.c_str(),      po::value<std::string >()->default_value(UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV     ), "subEnvs that will write to generic data output file"         )
    (m_option_pseq_dataOutputPeriod.c_str(),     po::value<unsigned int>()->default_value(UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV     ), "period of message display during param sequence generation"  )
    (m_option_pseq_dataOutputFileName.c_str(),   po::value<std::string >()->default_value(UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV  ), "name of data output file for parameters"                     )
    (m_option_pseq_dataOutputFileType.c_str(),   po::value<std::string >()->default_value(UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV  ), "type of data output file for parameters"                     )
    (m_option_pseq_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV), "subEnvs that will write to data output file for parameters"  )
#ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
    (m_option_pseq_computeStats.c_str(),         po::value<bool        >()->default_value(UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV          ), "compute statistics on sequence of parameter"                 )
#endif
    (m_option_qseq_dataInputFileName.c_str(),    po::value<std::string >()->default_value(UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV   ), "name of data input file for qois"                            )
    (m_option_qseq_dataInputFileType.c_str(),    po::value<std::string >()->default_value(UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV   ), "type of data input file for qois"                            )
    (m_option_qseq_size.c_str(),                 po::value<unsigned int>()->default_value(UQ_MOC_SG_QSEQ_SIZE_ODV                   ), "size of qoi sequence"                                        )
    (m_option_qseq_displayPeriod.c_str(),        po::value<unsigned int>()->default_value(UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV         ), "period of message display during qoi sequence generation"    )
    (m_option_qseq_measureRunTimes.c_str(),      po::value<bool        >()->default_value(UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV      ), "measure run times"                                           )
    (m_option_qseq_dataOutputPeriod.c_str(),     po::value<unsigned int>()->default_value(UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV     ), "period of message display during qoi sequence generation"    )
    (m_option_qseq_dataOutputFileName.c_str(),   po::value<std::string >()->default_value(UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV  ), "name of data output file for qois"                           )
    (m_option_qseq_dataOutputFileType.c_str(),   po::value<std::string >()->default_value(UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV  ), "type of data output file for qois"                           )
    (m_option_qseq_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV), "subEnvs that will write to data output file for qois"        )
#ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
    (m_option_qseq_computeStats.c_str(),         po::value<bool        >()->default_value(UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV          ), "compute statistics on sequence of qoi"                       )
#endif
   ;

  return;
}
开发者ID:RhysU,项目名称:queso,代码行数:31,代码来源:uqMonteCarloSGOptions.C


示例10: InitOptions

    void InitOptions(po::options_description& opts, po::positional_options_description&) override {
        opts.add_options()
            ("path,p", po::value<std::string>()->default_value("."), "path to a root directory")
            ("index,i", po::value<std::string>()->required(), "index path prefix")
            ;

        po::options_description listerOpts("Lister options");

        listerOpts.add_options()
            ("verbose,v", "use verbose mode")
            ("recursive,r", po::value<bool>()->default_value(true), "traverse recursively")
            ("hidden", "do not ignore hidden directories/files")
            ("max-depth", po::value<int>()->default_value(-1), "max recursion depth")
            ;

        opts.add(listerOpts);
    }
开发者ID:pavelkalinnikov,项目名称:codesearch,代码行数:17,代码来源:main.cpp


示例11: register_options

void runner::register_options(const po::options_description& options)
{
    assert(m_impl);

    const auto& opt = options.options();
    for (const auto& o: opt)
        m_impl->m_options_description.add(o);
}
开发者ID:steinwurf,项目名称:gauge,代码行数:8,代码来源:runner.cpp


示例12: applystrain_initializer

void applystrain_initializer(po::options_description& applystrain_desc)
{
    UtilityProgramOptions::add_help_suboption(applystrain_desc);
    UtilityProgramOptions::add_output_suboption(applystrain_desc);

    applystrain_desc.add_options()("structure,s", po::value<fs::path>()->required(),
                                   "POS.vasp like file that you want to apply strain to.");
    applystrain_desc.add_options()("mode,m", po::value<std::string>()->default_value("GL"),
                                   "Accepts strain convention as mode ('GL' [Green-Lagrange, default], 'EA' "
                                   "[Euler-Almansi], 'B' [Biot], or 'H' [Hencky])."
                                   " Also accepts 'F' [Deformation] as an argument to apply a deformation tensor");
    applystrain_desc.add_options()("tensor,t", po::value<fs::path>()->required(),
                                   "Path to a file with strain tensor."
                                   " Unrolled strain should be provided for GL, B, H, EA modes."
                                   " Ordered as E(0,0) E(1,1) E(2,2) E(1,2) E(0,2) E(0,1)."
                                   " Takes a 3X3 matrix for F (Deformation) mode.");
    return;
}
开发者ID:goirijo,项目名称:casm-utilities,代码行数:18,代码来源:apply_strain.cpp


示例13:

void Viewer<T>::appendOptions(po::options_description &opts)
{
    // Common program options
    opts.add_options()
        ("config,c", po::value<std::vector<std::string> >()->multitoken(),
        "Configuration file/key pair.\n"
        "e.g. 'config.toml mykey'")
        ;
}
开发者ID:mmyros,项目名称:Oat,代码行数:9,代码来源:Viewer.cpp


示例14: buildOptions

 void Application::buildOptions(po::options_description &desc)
 {
     desc.add_options()
         ("camera,c", po::value(&m_OptCameraName)->default_value(CVTRACKER_DEFAULT_CAMERA), "specific camera to calibrate")
         ("width,w", po::value(&m_OptCameraWidth)->default_value(320), "camera capture width")
         ("height,h", po::value(&m_OptCameraHeight)->default_value(240), "camera capture height")
         ("rate,r", po::value(&m_OptCameraRate)->default_value(25), "camera capture rate")
         ("tracker,t", po::value(&m_OptTracker)->default_value(CVTRACKER_DEFAULT_TRACKER), "tracker to use");
 }
开发者ID:zangel,项目名称:uquad,代码行数:9,代码来源:Application.cpp


示例15: init_options

//==============================================================================
void CC_Base::init_options(po::options_description &desc)
{
	desc.add_options()
		("help,h", "produce help message");

	desc.add_options()
		("log", po::value<String>(&option_log_name_)->implicit_value(""),
				"create log of all operations");

	desc.add_options()
		("device,d", po::value<String>(&option_device_address_),
				"set programmer deivce usb address 'bus:device'");

	desc.add_options()
		("fast,f", "set fast debug interface speed (by default: slow)"); //TODO made fast by default

	desc.add_options()
		("name,n", po::value<String>(&option_unit_name_),
				"specify target name e.g. CC2530 etc.");
}
开发者ID:scott-42,项目名称:cc-tool,代码行数:21,代码来源:cc_base.cpp


示例16: add_local_options

void DistributedClient::add_local_options(po::options_description &desc, client::configuration::data_type data) {
	desc.add_options()
		("certificate,c", po::value<std::string>()->notifier(boost::bind(&nscapi::functions::destination_container::set_string_data, &data->recipient, "certificate", _1)), 
		"Length of payload (has to be same as on the server)")
		/*
		("no-ssl,n", po::value<bool>(&command_data.no_ssl)->zero_tokens()->default_value(false), "Do not initial an ssl handshake with the server, talk in plain text.")

		("cert,c", po::value<std::wstring>(&command_data.cert)->default_value(cert_), "Certificate to use.")
		*/
		;
}
开发者ID:jkells,项目名称:nscp,代码行数:11,代码来源:DistributedClient.cpp


示例17: opt_stp_desc

inline void opt_stp_desc(po::options_description &desc)
{
  desc.add_options()
    ("dt", po::value<string>()->default_value("auto"), "time step [s]")
 
    ("dt_out", po::value<string>(), "output interval [s] (if dt == auto)")
    ("t_max", po::value<string>(), "time of simulation [s] (if dt == auto)")

    ("nt", po::value<unsigned long>(), "number of time steps [1] (if dt != auto)")
    ("nout", po::value<int>(), "output interval [dt] (if dt != auto)");
}
开发者ID:mwarusz,项目名称:icicle,代码行数:11,代码来源:opt_stp.hpp


示例18: defineMyOptions

void InfiniteDimensionalMCMCSamplerOptions::defineMyOptions(
    po::options_description & optionsDesc) const
{
  optionsDesc.add_options()
    (m_option_help.c_str(), "produce help message for infinite dimensional sampler")
    (m_option_dataOutputDirName.c_str(), po::value<std::string>()->default_value(UQ_INF_DATA_OUTPUT_DIR_NAME_ODV), "name of data output dir")
    (m_option_dataOutputFileName.c_str(), po::value<std::string>()->default_value(UQ_INF_DATA_OUTPUT_FILE_NAME_ODV), "name of data output file (HDF5)")
    (m_option_num_iters.c_str(), po::value<int>()->default_value(UQ_INF_NUM_ITERS_ODV), "number of mcmc iterations to do")
    (m_option_save_freq.c_str(), po::value<int>()->default_value(UQ_INF_SAVE_FREQ_ODV), "the frequency at which to save the chain state")
    (m_option_rwmh_step.c_str(), po::value<double>()->default_value(UQ_INF_RWMH_STEP_ODV), "the step-size in the random-walk Metropolis proposal");
  return;
}
开发者ID:roystgnr,项目名称:queso,代码行数:12,代码来源:InfiniteDimensionalMCMCSamplerOptions.C


示例19: add_local_options

void SMTPClient::add_local_options(po::options_description &desc, client::configuration::data_type data) {

 	desc.add_options()
		("sender", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "sender", _1)), 
			"Length of payload (has to be same as on the server)")

		("recipient", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "recipient", _1)), 
			"Length of payload (has to be same as on the server)")

		("template", po::value<std::string>()->notifier(boost::bind(&nscapi::protobuf::functions::destination_container::set_string_data, &data->recipient, "template", _1)), 
		"Do not initial an ssl handshake with the server, talk in plaintext.")
 		;
}
开发者ID:Vilse1202,项目名称:nscp,代码行数:13,代码来源:SMTPClient.cpp


示例20: pluginRegisterHelp

 virtual void pluginRegisterHelp(po::options_description& desc)
 {
     desc.add_options()
     ("steps,s", po::value<uint32_t > (&runSteps), "Simulation steps")
     ("percent,p", po::value<uint16_t > (&progress)->default_value(5),
      "Print time statistics after p percent to stdout")
     ("restart", po::value<bool>(&restartRequested)->zero_tokens(), "Restart simulation")
     ("restart-directory", po::value<std::string>(&restartDirectory)->default_value(restartDirectory),
      "Directory containing checkpoints for a restart")
     ("restart-step", po::value<int32_t>(&restartStep), "Checkpoint step to restart from")
     ("checkpoints", po::value<uint32_t>(&checkpointPeriod), "Period for checkpoint creation")
     ("checkpoint-directory", po::value<std::string>(&checkpointDirectory)->default_value(checkpointDirectory),
      "Directory for checkpoints");
 }
开发者ID:n01r,项目名称:picongpu,代码行数:14,代码来源:SimulationHelper.hpp



注:本文中的po::options_description类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ po::variables_map类代码示例发布时间:2022-05-31
下一篇:
C++ plugins::FactoryManager类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap