OpenStructure
Public Member Functions
ToolOptionNum< T, C > Class Template Reference

#include <tool_option.hh>

Inherits ToolOption.

Public Member Functions

 ToolOptionNum (const String &key, const String &verbose_name, T default_v, T min_value=std::numeric_limits< T >::min(), T max_value=std::numeric_limits< T >::max())
 
GetDefault () const
 
GetUpperLimit () const
 
GetLowerLimit () const
 
GetValue () const
 
bool SetValue (T value)
 
- Public Member Functions inherited from ToolOption
const StringGetKey () const
 
const StringGetVerboseName () const
 
Type GetType () const
 

Additional Inherited Members

- Public Types inherited from ToolOption
enum  Type { INT , FLOAT , ENUM , BUTTON }
 
- Protected Member Functions inherited from ToolOption
 ToolOption (const String &key, const String &verbose_name, Type type)
 

Detailed Description

template<typename T, ToolOption::Type C>
class ost::gui::ToolOptionNum< T, C >

Definition at line 59 of file tool_option.hh.

Constructor & Destructor Documentation

◆ ToolOptionNum()

ToolOptionNum ( const String key,
const String verbose_name,
default_v,
min_value = std::numeric_limits<T>::min(),
max_value = std::numeric_limits<T>::max() 
)
inline

Definition at line 61 of file tool_option.hh.

Member Function Documentation

◆ GetDefault()

T GetDefault ( ) const
inline

Definition at line 70 of file tool_option.hh.

◆ GetLowerLimit()

T GetLowerLimit ( ) const
inline

Definition at line 72 of file tool_option.hh.

◆ GetUpperLimit()

T GetUpperLimit ( ) const
inline

Definition at line 71 of file tool_option.hh.

◆ GetValue()

T GetValue ( ) const
inline

Definition at line 73 of file tool_option.hh.

◆ SetValue()

bool SetValue ( value)
inline

Definition at line 74 of file tool_option.hh.


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