StormByte-Config 2.0.0
C++26 configuration-document module of the StormByte suite
 
Loading...
Searching...
No Matches
type.hxx File Reference
#include <StormByte/config/exception.hxx>
#include <StormByte/config/visibility.h>
#include <StormByte/string/string.hxx>
#include <string_view>
Include dependency graph for type.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StormByte::Config::Item::Integer
 Tag for As<Integer>() → int. More...
 
struct  StormByte::Config::Item::Double
 Tag for As<Double>() → double (Integer promotes). More...
 
struct  StormByte::Config::Item::Bool
 Tag for As<Bool>() → bool. More...
 
struct  StormByte::Config::Item::Text
 Tag for As<Text>() → StormByte::String::String. More...
 
struct  StormByte::Config::Item::Binary
 Tag for As<Binary>() → StormByte::BinaryData. More...
 

Namespaces

namespace  StormByte
 
namespace  StormByte::Config
 Config module of the StormByte suite.
 
namespace  StormByte::Config::Item
 Configuration items (values, comments, groups, lists).
 

Enumerations

enum class  StormByte::Config::Item::Type : char {
  StormByte::Config::Item::Bool , StormByte::Config::Item::Comment , StormByte::Config::Item::Container , StormByte::Config::Item::Double ,
  StormByte::Config::Item::Integer , StormByte::Config::Item::String , StormByte::Config::Item::Binary , StormByte::Config::Item::Value
}
 Node kind in the document tree. More...
 
enum class  StormByte::Config::Item::CommentType : char { StormByte::Config::Item::SingleLineBash = 2 , StormByte::Config::Item::SingleLineC = 5 , StormByte::Config::Item::MultiLineC = 8 }
 Comment syntax used in the text document. More...
 
enum class  StormByte::Config::Item::ContainerType : char { StormByte::Config::Item::Group , StormByte::Config::Item::List }
 Group ({}) or list ([]). More...
 

Functions

static constexpr std::string_view StormByte::Config::Item::TypeToString (const Type &t) noexcept
 Converts a Type to its string representation.
 
constexpr std::string_view StormByte::Config::Item::TypeToString (const CommentType &t) noexcept
 Converts a CommentType to a human-readable string.
 
constexpr std::string_view StormByte::Config::Item::TypeToString (const ContainerType &t) noexcept
 Converts a ContainerType to a string.
 
constexpr ContainerType StormByte::Config::Item::TypeFromStartCharacter (const char &start)
 Resolves a container type from its opening character.