43#include <StormByte/safe/clonable.hxx>
47#include <StormByte/safe/string.hxx>
60 template<CommentType T>
class Comment;
115 bool operator==(const
Base& base) const noexcept;
122 bool operator!=(const
Base& base) const noexcept;
166 template<
class T>
decltype(
auto)
As();
173 template<
class T>
decltype(
auto)
As()
const;
Base class for all configuration items.
Definition base.hxx:66
virtual bool Equals(const Base &base) const =0
Equals.
decltype(auto) As()
Typed view of this item.
Base() noexcept
Constructor.
static bool IsNameValid(std::string_view name) noexcept
Checks if name is valid.
decltype(auto) As() const
Typed view of this item.
constexpr std::string_view TypeToString() const noexcept
Gets the type as string.
Definition base.hxx:150
StormByte::Safe::String m_name
Name of the item.
Definition base.hxx:183
void Name(std::string_view name)
Sets the name of the item.
Definition base.hxx:136
virtual constexpr Item::Type Type() const noexcept=0
Gets the type of the item.
virtual StormByte::Safe::String Serialize(const int &indent_level=0) const
Serializes the item as text.
constexpr const StormByte::Safe::String & Name() const noexcept
Gets the name of the item.
Definition base.hxx:128
Holds child items.
Definition container.hxx:62
Named container ({ ... }).
Definition group.hxx:57
Unnamed container ([ ... ]).
Definition list.hxx:57
Scalar configuration item.
Definition value.hxx:73
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Config::Config)
Configuration document items.
Definition base.hxx:55
Type
Node kind in the document tree.
Definition type.hxx:57
static constexpr std::string_view TypeToString(const Type &t) noexcept
Converts a Type to its string representation.
Definition type.hxx:73
Root namespace of the StormByte suite.
#define STORMBYTE_CONFIG_PUBLIC
Definition visibility.h:53