Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
flag_value_option Class
Syntax
C++
class flag_value_option : public base_option<bool>;

Flag options value. Set flag to true if option name is at arguments list 

Example how to use: OdDAI::utils::argv_parser commandLineParser("some.exe"); bool disableText = false; commandLineParser.add_param(std::make_shared(disableText, "-textDisable", "disable text output.")); 

Example in args: some.exe ... -disableText - [disableText == true] some.exe ... -disableText=true - [disableText == true] some.exe ... -disableText=false - [disableText == false] some.exe ... - [disableText == false]

OdDAI__utils__flag_value_option

File: daiSimpleProgramOptions.h 

Namespace: OdDAI::utils 

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