Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
DoubleOption Struct Reference
Inheritance diagram for DoubleOption:
Option< double > BaseOption

Public Member Functions

void set (const std::string &_value) override
 
std::string valueToString () override
 
 DoubleOption (std::string _selector, std::string _description, double defaultValue)
 
- Public Member Functions inherited from Option< double >
 Option (std::string _selector, std::string _description, double defaultValue)
 
- Public Member Functions inherited from BaseOption
virtual void set (const std::string &_value)=0
 
virtual std::string valueToString ()=0
 
 BaseOption (std::string _selector, std::string _description)
 
virtual ~BaseOption ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BaseOption
static void Init (const std::vector< BaseOption * > &, int argc, char **argv)
 
- Public Attributes inherited from Option< double >
double value
 
- Public Attributes inherited from BaseOption
std::string selector
 
std::string description
 

Detailed Description

Definition at line 98 of file using_skia_and_harfbuzz.cpp.

Constructor & Destructor Documentation

◆ DoubleOption()

DoubleOption::DoubleOption ( std::string  _selector,
std::string  _description,
double  defaultValue 
)
inline

Definition at line 105 of file using_skia_and_harfbuzz.cpp.

106 : Option<double>(std::move(_selector),
107 std::move(_description),
108 std::move(defaultValue)) {}

Member Function Documentation

◆ set()

void DoubleOption::set ( const std::string &  _value)
inlineoverridevirtual

Implements BaseOption.

Definition at line 99 of file using_skia_and_harfbuzz.cpp.

99{ value = atof(_value.c_str()); }

◆ valueToString()

std::string DoubleOption::valueToString ( )
inlineoverridevirtual

Implements BaseOption.

Definition at line 100 of file using_skia_and_harfbuzz.cpp.

100 {
101 std::ostringstream stm;
102 stm << value;
103 return stm.str();
104 }

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