Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Public Attributes | List of all members
castor::ParserParameter< ParameterType::eCheckedText > Class Reference

ParserParameter specialisation for ParameterType::eCheckedText. More...

#include <ParserParameter.hpp>

Inheritance diagram for castor::ParserParameter< ParameterType::eCheckedText >:
Inheritance graph
[legend]
Collaboration diagram for castor::ParserParameter< ParameterType::eCheckedText >:
Collaboration graph
[legend]

Public Member Functions

 ParserParameter (UInt32StrMap const &values, StringView name=ParserParameterStringType< ParameterType::eCheckedText >)
 Constructor.
 
 ParserParameter (uint32_t value, UInt32StrMap const &values, StringView name=ParserParameterStringType< ParameterType::eCheckedText >)
 Constructor.
 
ParameterType getType () const override
 
ParameterType getBaseType () const override
 
StringView getStrType () const override
 
ParserParameterBaseSPtr clone () const override
 
bool parse (LoggerInstance &logger, String &params) override
 Checks the parameter.
 

Public Attributes

StringView m_name
 
UInt32StrMap const m_values
 

Detailed Description

ParserParameter specialisation for ParameterType::eCheckedText.

Constructor & Destructor Documentation

◆ ParserParameter() [1/2]

castor::ParserParameter< ParameterType::eCheckedText >::ParserParameter ( UInt32StrMap const & values,
StringView name = ParserParameterStringTypeParameterType::eCheckedText > )
explicit

Constructor.

Parameters
[in]valuesThe values used to validate the parsed value.
[in]nameThe parameter type name.

◆ ParserParameter() [2/2]

castor::ParserParameter< ParameterType::eCheckedText >::ParserParameter ( uint32_t value,
UInt32StrMap const & values,
StringView name = ParserParameterStringTypeParameterType::eCheckedText > )
inlineexplicit

Constructor.

Member Function Documentation

◆ clone()

Returns
A copy of this parameter.

◆ getBaseType()

Returns
The parameter base type (like ParameterType::eText for ParameterType::eName).

◆ getStrType()

Returns
The parameter string type.

◆ getType()

Returns
The parameter type.

◆ parse()

bool castor::ParserParameter< ParameterType::eCheckedText >::parse ( LoggerInstance & logger,
String & params )
override

Checks the parameter.

Parameters
[in,out]loggerThe logger instance.
[in,out]paramsThe text containing the parameter value.
Returns
false if any error occured.

Member Data Documentation

◆ m_name

◆ m_values

UInt32StrMap const castor::ParserParameter< ParameterType::eCheckedText >::m_values

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