Castor3D 0.16.0
Multiplatform 3D engine
|
#include <ParserParameterBase.hpp>
Public Member Functions | |
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 | getType () const =0 |
virtual CU_API ParameterType | getBaseType () const |
virtual CU_API StringView | getStrType () const =0 |
virtual CU_API ParserParameterBaseSPtr | clone () const =0 |
virtual CU_API bool | parse (LoggerInstance &logger, String ¶ms)=0 |
Checks the parameter. | |
virtual CU_API bool | isSet ()=0 |
template<typename T > | |
T const & | get (T &value) const |
Retrieves the parameter value. | |
template<typename T > | |
T | get () const |
|
default |
Constructor.
|
default |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
pure virtual |
Implemented in castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >, and castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >.
|
inline |
T const & castor::ParserParameterBase::get | ( | T & | value | ) | const |
Retrieves the parameter value.
[out] | value | Receives the value. |
|
inlinevirtual |
References getType().
|
pure virtual |
Implemented in castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >, and castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >.
|
pure virtual |
Implemented in castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >, and castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >.
Referenced by getBaseType().
|
pure virtual |
false
if the parameter is not set. Implemented in castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >, and castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >.
|
defaultnoexcept |
|
default |
|
pure virtual |
Checks the parameter.
[in,out] | logger | The logger instance. |
[in,out] | params | The text containing the parameter value. |
false
if any error occured. Implemented in castor::ParserParameter< Type, std::enable_if_t< !hasBaseParameterTypeV< Type > &&!isArithmeticTypeV< Type > > >, and castor::ParserParameter< Type, std::enable_if_t< IsArithmeticType< Type >::value > >.