|
| | Value (const T &value) |
| | Constructs a Value with the given value.
|
| |
template<typename U = T>
requires std::is_same_v<U, std::string> |
| | Value (const char *value) |
| |
template<typename U = T>
requires std::is_same_v<U, std::string> |
| | Value (const char *name, const char *value) |
| |
| | Value (T &&value) |
| |
| | Value (const std::string &name, const T &value) |
| |
| | Value (std::string &&name, T &&value) |
| |
| | Value (const std::string &name, const char *value) |
| |
| | Value (std::string &&name, const char *value) |
| |
| | Value (const Value &single)=default |
| |
| | Value (Value &&single) noexcept=default |
| |
| Value & | operator= (const Value &single)=default |
| |
| Value & | operator= (Value &&single) noexcept=default |
| |
| virtual | ~Value () noexcept override=default |
| |
| virtual constexpr Item::Type | Type () const noexcept override |
| | Gets the type of the item.
|
| |
| bool | operator== (const Value< T > &single) const noexcept |
| | Checks if two Value objects are equal.
|
| |
| bool | operator!= (const Value< T > &single) const noexcept |
| |
| T & | operator* () noexcept |
| |
| const T & | operator* () const noexcept |
| |
| std::string | Serialize (const int &indent_level) const noexcept override |
| | Serializes the item to a string.
|
| |
| virtual PointerType | Clone () const override |
| |
| virtual PointerType | Move () override |
| |
| | Base ()=default |
| | Constructs a Base item with an optional name.
|
| |
| | Base (const std::string &name) |
| | Constructs a Base item with an optional name.
|
| |
| | Base (const Base &base)=default |
| |
| | Base (Base &&base) noexcept=default |
| |
| Base & | operator= (const Base &base)=default |
| |
| Base & | operator= (Base &&base) noexcept=default |
| |
| virtual | ~Base () noexcept=default |
| |
| bool | operator== (const Base &base) const noexcept |
| |
| bool | operator!= (const Base &base) const noexcept |
| |
| constexpr const std::optional< std::string > & | Name () const noexcept |
| | Gets the name of the item.
|
| |
| constexpr void | Name (const std::string &name) noexcept |
| |
| bool | IsNameValid () const noexcept |
| |
| constexpr std::string | TypeToString () const noexcept |
| |
| | operator std::string () const |
| |
| template<typename T > |
| const T & | Value () const |
| |
| template<typename T > |
| T & | Value () |
| |
template<AllowedValueType T>
class StormByte::Config::Item::Value< T >
Represents a configuration item with a value.
- Template Parameters
-
| T | The type of the value (only std::string, int, double, or bool allowed). |