Castor3D 0.16.0
Multiplatform 3D engine
|
Specified parser parameter. More...
#include <ParserParameter.hpp>
Public Types | |
using | ValueType = ParserParameterValueType< Type > |
Public Member Functions | |
ParserParameter ()=default | |
ParserParameter (ValueType rhs) | |
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 {} |
bool | m_set {} |
Specified parser parameter.
using castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >::ValueType = ParserParameterValueType< Type > |
The parameter value type.
|
default |
|
inlineexplicit |
Constructor.
|
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.
bool castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >::m_set {} |
The parameter value.
ValueType castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >::m_value {} |
The parameter value.