Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
key_value_option<class TValue> Template
Syntax
C++
template <class TValue> class key_value_option : public base_option<TValue>;

Single key->value option. Finds and parse option like key=value in argument list. 

Example how to use: OdDAI::utils::argv_parser commandLineParser("some.exe"); OdString benchmarkFileName = "c:/default_file_name.bnc"; commandLineParser.add_param(std::make_shared>(benchmarkFileName, "-benchmark", "path to file benchmark, to compare. Does not used if empty.")); 

Example in args: some.exe ... -benchmark="c:/some_place/file_name.bnc" - [benchmarkFileName="c:/some_place/file_name.bnc"] some.exe ... - [benchmarkFileName="c:/default_file_name.bnc"]

OdDAI__utils__key_value_option@classTValue

File: daiSimpleProgramOptions.h 

Namespace: OdDAI::utils 

Copyright © 2002-2022. Open Design Alliance All rights reserved.