DGtal  1.2.0
Static Public Member Functions
DGtal::detail::ValueConverter< std::string, int > Struct Reference

Specialized definitions of a class for converting type X toward type Y. More...

#include <DGtal/helpers/Parameters.h>

Static Public Member Functions

static int cast (const std::string &value)
 

Detailed Description

Specialized definitions of a class for converting type X toward type Y.

Definition at line 94 of file Parameters.h.

Member Function Documentation

◆ cast()

static int DGtal::detail::ValueConverter< std::string, int >::cast ( const std::string &  value)
inlinestatic

Definition at line 95 of file Parameters.h.

96  {
97  // note (JOL): cannot use atoi (C) since it uses a different locale as program_options (C++).
98  int val;
99  std::istringstream iss( value );
100  iss >> val;
101  return val;
102  }

The documentation for this struct was generated from the following file: