![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
Configuration parameters. More...
#include <Parameter.hpp>

Public Member Functions | |
| ParametersT ()=default | |
| Constructor. | |
| void | parse (castor::String const &text) |
| Parses the given text into a parameters list. | |
| template<typename ValueT > | |
| bool | add (KeyT const &name, ValueT *values, uint32_t count) |
| adds a parameter | |
| void | add (ParametersT const ¶meters) |
| adds a parameters list. | |
| template<typename ValueT , uint32_t N> | |
| bool | add (KeyT const &name, ValueT const(&values)[N]) |
| adds a parameter | |
| template<typename ValueT > | |
| bool | add (KeyT const &name, ValueT const &value) |
| adds a parameter | |
| bool | add (KeyT const &name, castor::String const &value) |
| adds a string parameter | |
| bool | add (KeyT const &name, castor::Path const &value) |
| adds a string parameter | |
| template<typename ValueT > | |
| bool | set (KeyT const &name, ValueT const &value) |
| Sets a parameter value. | |
| template<typename ValueT > | |
| bool | get (KeyT const &name, ValueT *values, uint32_t count) const |
| Retrieves a parameter value. | |
| template<typename ValueT > | |
| bool | get (KeyT const &name, ValueT &value) const |
| Retrieves a parameter value. | |
| template<typename ValueT , uint32_t N> | |
| bool | get (KeyT const &name, ValueT(&values)[N]) const |
| Retrieves a parameter value. | |
| bool | get (KeyT const &name, castor::String &value) const |
| Retrieves a parameter value. | |
| bool | get (KeyT const &name, castor::Path &value) const |
| Retrieves a parameter value. | |
| template<typename ValueT > | |
| ValueT | get (KeyT const &name) const |
| Retrieves a parameter value. | |
| size_t | size () const |
| auto | begin () const noexcept |
| auto | end () const noexcept |
Configuration parameters.
|
default |
Constructor.
|
inline |
adds a string parameter
| [in] | name | The parameter name |
| [in] | value | The parameter value |
false if a parameter with the given name already exists References castor3d::ParametersT< KeyT >::add().

|
inline |
adds a string parameter
| [in] | name | The parameter name |
| [in] | value | The parameter value |
false if a parameter with the given name already exists References castor3d::ParametersT< KeyT >::size().

|
inline |
adds a parameter
| [in] | name | The parameter name |
| [in] | values | The parameter values |
| [in] | count | The values count |
false if a parameter with the given name already exists Referenced by castor3d::ParametersT< KeyT >::add(), castor3d::ParametersT< KeyT >::add(), castor3d::ParametersT< KeyT >::add(), and castor3d::ParametersT< KeyT >::parse().

|
inline |
adds a parameter
| [in] | name | The parameter name |
| [in] | value | The parameter value |
false if a parameter with the given name already exists References castor3d::ParametersT< KeyT >::add().

|
inline |
adds a parameter
| [in] | name | The parameter name |
| [in] | values | The parameter values |
false if a parameter with the given name already exists References castor3d::ParametersT< KeyT >::add().

|
inline |
adds a parameters list.
| [in] | parameters | The parameters list. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
References castor3d::ParametersT< KeyT >::get().

|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
| [out] | value | The parameter value |
false if there is no parameter with the given name References castor3d::ParametersT< KeyT >::get().

|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
| [out] | value | The parameter value |
false if there is no parameter with the given name
|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
| [out] | value | The parameter value |
false if there is no parameter with the given name References castor3d::ParametersT< KeyT >::get().

|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
| [out] | values | The parameter values |
| [in] | count | The values available count |
false if there is no parameter with the given name References castor3d::ParametersT< KeyT >::begin().
Referenced by castor3d::ParametersT< KeyT >::get(), castor3d::ParametersT< KeyT >::get(), castor3d::ParametersT< KeyT >::get(), and castor3d::ParametersT< KeyT >::get().


|
inline |
Retrieves a parameter value.
| [in] | name | The parameter name |
| [out] | values | The parameter values |
false if there is no parameter with the given name References castor3d::ParametersT< KeyT >::get().

|
inline |
Parses the given text into a parameters list.
| [in] | text | The source text. |
References castor3d::ParametersT< KeyT >::add(), cuT, and castor::string::split().

|
inline |
Sets a parameter value.
| [in] | name | The parameter name |
| [in] | value | The parameter value |
false if there is no parameter with the given name
|
inline |