Helper struct providing static methods for parsing strings into various types.  
 More...
#include <parser_utils.h>
|  | 
| template<typename T > | 
| static T | parse (const std::string &input) | 
|  | Parses a string input into a value of type T. 
 | 
|  | 
| template<typename T > | 
| static void | parse (const std::string &input, T &value) | 
|  | Parses a string input into a value of type T. 
 | 
|  | 
Helper struct providing static methods for parsing strings into various types. 
◆ parse() [1/2]
template<typename T > 
  
  | 
        
          | static T cli::parsing::ParseHelper::parse | ( | const std::string & | input | ) |  |  | inlinestatic | 
 
Parses a string input into a value of type T. 
- Template Parameters
- 
  
    | T | The type to parse the input into. |  
 
- Parameters
- 
  
    | input | The input string to parse. |  
 
- Returns
- The parsed value of type T. 
 
 
◆ parse() [2/2]
template<typename T > 
  
  | 
        
          | static void cli::parsing::ParseHelper::parse | ( | const std::string & | input, |  
          |  |  | T & | value |  
          |  | ) |  |  |  | inlinestatic | 
 
Parses a string input into a value of type T. 
- Template Parameters
- 
  
    | T | The type to parse the input into. |  
 
- Parameters
- 
  
    | input | The input string to parse. |  | value | The variable to store the parsed value. |  
 
 
 
The documentation for this struct was generated from the following file: