DGtal  1.3.beta
Static Public Member Functions
DGtal::detail::ValueConverter< std::string, double > 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 double cast (const std::string &value)
 

Detailed Description

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

Definition at line 68 of file Parameters.h.

Member Function Documentation

◆ cast()

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

Definition at line 69 of file Parameters.h.

70  {
71  // note (JOL): cannot use atof (C) since it uses a different locale as program_options (C++).
72  double val;
73  std::istringstream iss( value );
74  iss >> val;
75  return val;
76  }

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