Close

Relief for ODA Team in Ukraine

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

Multiple key->value option. Finds and parse multiple occurrences of options like key=value in argument list. 

Example how to use: OdDAI::utils::argv_parser commandLineParser("some.exe"); std::vectorifcFiles = {"c:/a1.txt","c:/a2.txt"}; commandLineParser.add_param(std::make_shared>(ifcFiles, "-ifcFile", "the list of compared files")); 

Example in args: some.exe ... -ifcFile="c:/1.txt" ... -ifcFile="c:/2.txt" - [ifcFiles == ["c:/1.txt", "c:/2.txt"]] some.exe ... - [ifcFiles == ["c:/a1.txt","c:/a2.txt"]]

OdDAI__utils__collection_key_value_option@classTValue

File: daiSimpleProgramOptions.h 

Namespace: OdDAI::utils 

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