45#include <StormByte/safe/binary.hxx>
46#include <StormByte/safe/string.hxx>
47#include <StormByte/safe/variant.hxx>
97 explicit Value(
const char* value);
103 explicit Value(std::string_view value);
128 Value(std::string_view name,
int value);
135 Value(std::string_view name,
double value);
142 Value(std::string_view name,
bool value);
149 Value(std::string_view name,
const char* value);
156 Value(std::string_view name, std::string_view value);
245 Value& operator=(const
char* value);
275 operator const
int&() const;
282 operator
double() const;
303 operator const
bool&() const;
369 [[noreturn]]
void Fail(const
char* wanted) const;
375#include <StormByte/config/item/base.txx>
Base() noexcept
Constructor.
Scalar configuration item.
Definition value.hxx:73
Value(int value)
Integer payload.
Value(std::string_view name, int value)
Named integer.
Value(std::string_view name, double value)
Named double.
Value(Value &&value) noexcept
Move constructor.
Value(std::string_view value)
Text payload from a view.
Item::Type Kind() const noexcept
Payload kind.
Value(const Value &value)
Copy constructor.
Value(const StormByte::Safe::Binary &value)
Byte payload.
StormByte::Safe::String Serialize(const int &indent_level) const override
Text form of this item.
Value(std::string_view name, bool value)
Named bool.
~Value() noexcept override
Destructor.
Value(std::string_view name, const StormByte::Safe::Binary &value)
Named bytes.
Value(std::string_view name, std::string_view value)
Named text.
PointerType Clone() const override
Clone onto the Config heap.
Value(const char *value)
Text payload from a C string.
PointerType Move() override
Move onto the Config heap.
Value(std::string_view name, StormByte::Safe::Binary &&value)
Named bytes.
Value(StormByte::Safe::Binary &&value)
Byte payload.
bool Equals(const Base &base) const override
Compare payloads after the base has matched the type.
Value(StormByte::Safe::String &&value)
Text payload.
Value(bool value)
Bool payload.
Value(double value)
Double payload.
Value(std::string_view name, const char *value)
Named text from a C string.
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Config::Config)
All the classes for item configuration.
Configuration document items.
Definition base.hxx:55
Config module of the StormByte suite.
Definition alias.hxx:51
Root namespace of the StormByte suite.
Tag for As<Binary>() → StormByte::Safe::Binary.
Definition type.hxx:151
#define STORMBYTE_CONFIG_PUBLIC
Definition visibility.h:53