NDEVR
API Documentation
LineEditResourceSetter< t_type, is_number >

A basic class for helping convert a Value into a resource. More...

Inheritance diagram for LineEditResourceSetter< t_type, is_number >:
[legend]

Static Public Member Functions

static t_type ValueFromFloat (const fltp08 &value)
 Converts a floating-point number back to the value type.
static fltp08 ValueToFloat (const t_type &value)
 Converts a value to a floating-point number.

Detailed Description

template<class t_type, bool is_number>
class LineEditResourceSetter< t_type, is_number >

A basic class for helping convert a Value into a resource.


Definition at line 52 of file QCustomLineEdit.h.

Member Function Documentation

◆ ValueFromFloat()

template<class t_type, bool is_number>
t_type LineEditResourceSetter< t_type, is_number >::ValueFromFloat ( const fltp08 & value)
inlinestatic

Converts a floating-point number back to the value type.

Asserts for non-number types.

Parameters
[in]valueThe floating-point value to convert.
Returns
An invalid value of t_type (this overload should not be called).

Definition at line 71 of file QCustomLineEdit.h.

◆ ValueToFloat()

template<class t_type, bool is_number>
fltp08 LineEditResourceSetter< t_type, is_number >::ValueToFloat ( const t_type & value)
inlinestatic

Converts a value to a floating-point number.

Asserts for non-number types.

Parameters
[in]valueThe value to convert.
Returns
An invalid floating-point value (this overload should not be called).

Definition at line 60 of file QCustomLineEdit.h.


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