Castor3D 0.16.0
Multiplatform 3D engine
|
Specified parser parameter. More...
#include <ParserParameter.hpp>
Public Types | |
using | ValueType = ParserParameterValueType< Type > |
Public Member Functions | |
ParserParameter () | |
Constructor. | |
ParserParameter (ValueType rhs) | |
Constructor. | |
ParserParameter (Range< ValueType > const &range) | |
Constructor. | |
ParserParameter (ValueType rhs, Range< ValueType > const &range) | |
Constructor. | |
ParameterType | getType () const override |
StringView | getStrType () const override |
ParserParameterBaseSPtr | clone () const override |
bool | parse (LoggerInstance &logger, String ¶ms) override |
Checks the parameter. | |
bool | isSet () override |
Public Member Functions inherited from castor::ParserParameterBase | |
CU_API | ParserParameterBase ()=default |
Constructor. | |
CU_API | ParserParameterBase (ParserParameterBase const &)=default |
CU_API | ParserParameterBase (ParserParameterBase &&) noexcept=default |
CU_API ParserParameterBase & | operator= (ParserParameterBase const &)=default |
CU_API ParserParameterBase & | operator= (ParserParameterBase &&) noexcept=default |
virtual CU_API | ~ParserParameterBase () noexcept=default |
virtual CU_API ParameterType | getBaseType () const |
template<typename T > | |
T const & | get (T &value) const |
Retrieves the parameter value. | |
template<typename T > | |
T | get () const |
Public Attributes | |
ValueType | m_value {} |
Range< ValueType > | m_range |
bool | m_set {} |
Specified parser parameter.
using castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >::ValueType = ParserParameterValueType< Type > |
The parameter value type.
|
inline |
Constructor.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
[in] | range | The range to parse. |
|
inlineexplicit |
Constructor.
[in] | rhs | The value. |
[in] | range | The range to parse. |
|
inlineoverridevirtual |
Implements castor::ParserParameterBase.
|
inlineoverridevirtual |
Implements castor::ParserParameterBase.
|
inlineoverridevirtual |
Implements castor::ParserParameterBase.
|
inlineoverridevirtual |
false
if the parameter is not set. Implements castor::ParserParameterBase.
|
inlineoverridevirtual |
Checks the parameter.
[in,out] | logger | The logger instance. |
[in,out] | params | The text containing the parameter value. |
false
if any error occured. Implements castor::ParserParameterBase.
Range< ValueType > castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >::m_range |
The parameter value range.
bool castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >::m_set {} |
The parameter value.
ValueType castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >::m_value {} |
The parameter value.