#include <utils/CommandLineParser.hpp>
◆ CommandLineOption() [1/2]
  
  | 
        
          | openfluid::utils::CommandLineOption::CommandLineOption | ( |  | ) |  |  | inline | 
 
 
◆ CommandLineOption() [2/2]
  
  | 
        
          | openfluid::utils::CommandLineOption::CommandLineOption | ( | const std::string & | LongName, |  
          |  |  | const std::string & | ShortName, |  
          |  |  | const std::string & | HelpText, |  
          |  |  | bool | ValueRequired = false |  
          |  | ) |  |  |  | inline | 
 
Instanciates an option with the given parameters 
- Parameters
- 
  
    | [in] | LongName | The long name of the option |  | [in] | ShortName | The short name of the option |  | [in] | HelpText | The help text associated to the option |  | [in] | ValueRequired | Set to true to require a value with this option (default is false) |  
 
 
 
◆ activate()
  
  | 
        
          | void openfluid::utils::CommandLineOption::activate | ( | const std::string & | Value = "" | ) |  |  | inline | 
 
Activates the option with the given value 
- Parameters
- 
  
    | [in] | Value | The value for activation (default is empty) |  
 
 
 
◆ getHelpText()
  
  | 
        
          | std::string openfluid::utils::CommandLineOption::getHelpText | ( |  | ) | const |  | inline | 
 
Returns the help text of the option 
- Returns
- The help text 
 
 
◆ getLongName()
  
  | 
        
          | std::string openfluid::utils::CommandLineOption::getLongName | ( |  | ) | const |  | inline | 
 
Returns the long name of the option (e.g. 'output-dir') 
- Returns
- The long name 
 
 
◆ getShortName()
  
  | 
        
          | std::string openfluid::utils::CommandLineOption::getShortName | ( |  | ) | const |  | inline | 
 
Returns the short name of the option (e.g. 'o') 
- Returns
- The short name 
 
 
◆ getValue()
  
  | 
        
          | std::string openfluid::utils::CommandLineOption::getValue | ( |  | ) | const |  | inline | 
 
Returns the value of the option 
- Returns
- The value 
 
 
◆ isActive()
  
  | 
        
          | bool openfluid::utils::CommandLineOption::isActive | ( |  | ) | const |  | inline | 
 
Tests if the option is active 
- Returns
- true if the option is active 
 
 
◆ isValueRequired()
  
  | 
        
          | bool openfluid::utils::CommandLineOption::isValueRequired | ( |  | ) | const |  | inline | 
 
Tests if the option requires a value 
- Returns
- true if the option requires a value 
 
 
◆ reset()
  
  | 
        
          | void openfluid::utils::CommandLineOption::reset | ( |  | ) |  |  | inline | 
 
Resets the option to default (inactive with empty value) 
 
 
The documentation for this class was generated from the following file: