Scalar configuration item. More...
#include <StormByte/config/item/value.hxx>


Public Member Functions | |
| Value (int value) | |
| Constructor. | |
| Value (double value) | |
| Constructor. | |
| Value (bool value) | |
| Constructor. | |
| Value (const StormByte::String::String &value) | |
| Constructor. | |
| Value (StormByte::String::String &&value) | |
| Constructor. | |
| Value (const char *value) | |
| Constructor. | |
| Value (std::string_view value) | |
| Constructor. | |
| Value (const StormByte::BinaryData &value) | |
| Constructor. | |
| Value (StormByte::BinaryData &&value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, int value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, double value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, bool value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, const StormByte::String::String &value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, const char *value) | |
| Constructor. | |
| Value (const StormByte::String::String &name, const StormByte::BinaryData &value) | |
| Constructor. | |
| Value (std::string_view name, int value) | |
| Constructor. | |
| Value (std::string_view name, double value) | |
| Constructor. | |
| Value (std::string_view name, bool value) | |
| Constructor. | |
| Value (std::string_view name, std::string_view value) | |
| Constructor. | |
| Value (std::string_view name, const char *value) | |
| Constructor. | |
| Value (std::string_view name, const StormByte::BinaryData &value) | |
| Constructor. | |
| Value (const Value &value) | |
| Copy constructor. | |
| Value (Value &&value) noexcept | |
| Move constructor. | |
| Value & | operator= (const Value &value) |
| Assignment operator. | |
| Value & | operator= (Value &&value) noexcept |
| Move assignment operator. | |
| ~Value () noexcept override | |
| Destructor. | |
| Item::Type | Kind () const noexcept |
| Payload kind. | |
| Item::Type | Type () const noexcept override |
| Item type. | |
| Value & | operator= (int value) |
| Assign integer. | |
| Value & | operator= (double value) |
| Assign double. | |
| Value & | operator= (bool value) |
| Assign bool. | |
| Value & | operator= (const StormByte::String::String &value) |
| Assign string. | |
| Value & | operator= (const char *value) |
| Assign string. | |
| Value & | operator= (const StormByte::BinaryData &value) |
| Assign bytes. | |
| operator int & () | |
| Convert to integer. | |
| operator const int & () const | |
| Convert to integer. | |
| operator double () const | |
| Convert to double (Integer promotes) | |
| operator double & () | |
| Convert to double reference. | |
| operator bool & () | |
| Convert to bool. | |
| operator const bool & () const | |
| Convert to bool. | |
| operator StormByte::String::String & () | |
| Convert to string. | |
| operator const StormByte::String::String & () const | |
| Convert to string. | |
| operator StormByte::BinaryData & () | |
| Convert to bytes. | |
| operator const StormByte::BinaryData & () const | |
| Convert to bytes. | |
| PointerType | Clone () const override |
| Clone. | |
| PointerType | Move () override |
| Move. | |
| StormByte::String::String | Serialize (const int &indent_level) const override |
| Serialize. | |
Public Member Functions inherited from StormByte::Config::Item::Base | |
| Base () noexcept | |
| Constructor. | |
| Base (const StormByte::String::String &name) | |
| Constructor. | |
| Base (const Base &base) noexcept=default | |
| Copy constructor. | |
| Base (Base &&base) noexcept=default | |
| Move constructor. | |
| Base & | operator= (const Base &base) noexcept=default |
| Assignment operator. | |
| Base & | operator= (Base &&base) noexcept=default |
| Move assignment operator. | |
| ~Base () noexcept override | |
| Destructor. | |
| bool | operator== (const Base &base) const noexcept |
| Compares two items. | |
| bool | operator!= (const Base &base) const noexcept |
| Compares two items. | |
| constexpr const StormByte::String::String & | Name () const noexcept |
| Gets the name of the item. | |
| constexpr void | Name (const StormByte::String::String &name) |
| Sets the name of the item. | |
| void | Name (std::string_view name) |
| Sets the name of the item. | |
| constexpr std::string_view | TypeToString () const noexcept |
| Gets the type as string. | |
| template<class T > | |
| decltype(auto) | As () |
| Typed view of this item. | |
| template<class T > | |
| decltype(auto) | As () const |
| Typed view of this item. | |
Public Member Functions inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| constexpr | Clonable ()=default |
| constexpr | Clonable (const Clonable &)=default |
| constexpr | Clonable (Clonable &&) noexcept=default |
| constexpr Clonable & | operator= (const Clonable &)=default |
| constexpr Clonable & | operator= (Clonable &&) noexcept=default |
| virtual constexpr | ~Clonable () noexcept=default |
Protected Member Functions | |
| bool | Equals (const Base &base) const override |
| Equals. | |
Additional Inherited Members | |
Public Types inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| typedef SmartPointer | PointerType |
Static Public Member Functions inherited from StormByte::Config::Item::Base | |
| static bool | IsNameValid (const StormByte::String::String &name) noexcept |
| Checks if name is valid. | |
| static bool | IsNameValid (std::string_view name) noexcept |
| Checks if name is valid. | |
Static Public Member Functions inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| static PointerType | MakePointer (Args &&... args) |
Protected Attributes inherited from StormByte::Config::Item::Base | |
| StormByte::String::String | m_name |
| Name of the item. | |
Scalar configuration item.
|
explicit |
Constructor.
| value | integer |
|
explicit |
Constructor.
| value | double |
|
explicit |
Constructor.
| value | bool |
|
explicit |
Constructor.
| value | string |
|
explicit |
Constructor.
| value | string |
|
explicit |
Constructor.
| value | string |
|
explicit |
Constructor.
| value | string |
|
explicit |
Constructor.
| value | bytes |
|
explicit |
Constructor.
| value | bytes |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| int | value | ||
| ) |
Constructor.
| name | name |
| value | integer |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| double | value | ||
| ) |
Constructor.
| name | name |
| value | double |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| bool | value | ||
| ) |
Constructor.
| name | name |
| value | bool |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| const StormByte::String::String & | value | ||
| ) |
Constructor.
| name | name |
| value | string |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| const char * | value | ||
| ) |
Constructor.
| name | name |
| value | string |
| StormByte::Config::Item::Value::Value | ( | const StormByte::String::String & | name, |
| const StormByte::BinaryData & | value | ||
| ) |
Constructor.
| name | name |
| value | bytes |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| int | value | ||
| ) |
Constructor.
| name | name |
| value | integer |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| double | value | ||
| ) |
Constructor.
| name | name |
| value | double |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| bool | value | ||
| ) |
Constructor.
| name | name |
| value | bool |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| std::string_view | value | ||
| ) |
Constructor.
| name | name |
| value | string |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| const char * | value | ||
| ) |
Constructor.
| name | name |
| value | string |
| StormByte::Config::Item::Value::Value | ( | std::string_view | name, |
| const StormByte::BinaryData & | value | ||
| ) |
Constructor.
| name | name |
| value | bytes |
| StormByte::Config::Item::Value::Value | ( | const Value & | value | ) |
Copy constructor.
| value | item |
|
noexcept |
Move constructor.
| value | item |
|
overridenoexcept |
Destructor.
|
overridevirtual |
|
overrideprotectedvirtual |
|
noexcept |
Payload kind.
|
overridevirtual |
| StormByte::Config::Item::Value::operator bool & | ( | ) |
Convert to bool.
| StormByte::Config::Item::Value::operator const bool & | ( | ) | const |
Convert to bool.
| StormByte::Config::Item::Value::operator const int & | ( | ) | const |
Convert to integer.
| StormByte::Config::Item::Value::operator const StormByte::BinaryData & | ( | ) | const |
Convert to bytes.
| StormByte::Config::Item::Value::operator const StormByte::String::String & | ( | ) | const |
Convert to string.
| StormByte::Config::Item::Value::operator double | ( | ) | const |
Convert to double (Integer promotes)
| StormByte::Config::Item::Value::operator double & | ( | ) |
Convert to double reference.
| StormByte::Config::Item::Value::operator int & | ( | ) |
Convert to integer.
| StormByte::Config::Item::Value::operator StormByte::BinaryData & | ( | ) |
Convert to bytes.
| StormByte::Config::Item::Value::operator StormByte::String::String & | ( | ) |
Convert to string.
| Value & StormByte::Config::Item::Value::operator= | ( | bool | value | ) |
Assign bool.
| value | bool |
| Value & StormByte::Config::Item::Value::operator= | ( | const char * | value | ) |
Assign string.
| value | string |
| Value & StormByte::Config::Item::Value::operator= | ( | const StormByte::BinaryData & | value | ) |
Assign bytes.
| value | bytes |
| Value & StormByte::Config::Item::Value::operator= | ( | const StormByte::String::String & | value | ) |
Assign string.
| value | string |
Assignment operator.
| value | item |
| Value & StormByte::Config::Item::Value::operator= | ( | double | value | ) |
Assign double.
| value | double |
| Value & StormByte::Config::Item::Value::operator= | ( | int | value | ) |
Assign integer.
| value | integer |
Move assignment operator.
| value | item |
|
overridevirtual |
Serialize.
| indent_level | indent |
Reimplemented from StormByte::Config::Item::Base.
|
overridevirtualnoexcept |