Configuration items (values, comments, groups, lists). More...
Classes | |
| class | Base |
| Base class for all configuration items. More... | |
| struct | Binary |
Tag for As<Binary>() → StormByte::BinaryData. More... | |
| struct | Bool |
Tag for As<Bool>() → bool. More... | |
| class | Comment |
Comment item (#, // or /* *\/). More... | |
| class | Container |
| Holds child items. More... | |
| struct | Double |
Tag for As<Double>() → double (Integer promotes). More... | |
| class | Group |
Named container ({ ... }). More... | |
| struct | Integer |
Tag for As<Integer>() → int. More... | |
| class | List |
Unnamed container ([ ... ]). More... | |
| struct | Text |
Tag for As<Text>() → StormByte::String::String. More... | |
| class | Value |
| Scalar configuration item. More... | |
Enumerations | |
| enum class | Type : char { Bool , Comment , Container , Double , Integer , String , Binary , Value } |
| Node kind in the document tree. More... | |
| enum class | CommentType : char { SingleLineBash = 2 , SingleLineC = 5 , MultiLineC = 8 } |
| Comment syntax used in the text document. More... | |
| enum class | ContainerType : char { Group , List } |
Group ({}) or list ([]). More... | |
Functions | |
| static constexpr std::string_view | TypeToString (const Type &t) noexcept |
| Converts a Type to its string representation. | |
| constexpr std::string_view | TypeToString (const CommentType &t) noexcept |
| Converts a CommentType to a human-readable string. | |
| constexpr std::string_view | TypeToString (const ContainerType &t) noexcept |
| Converts a ContainerType to a string. | |
| constexpr ContainerType | TypeFromStartCharacter (const char &start) |
| Resolves a container type from its opening character. | |
Configuration items (values, comments, groups, lists).
|
strong |
Comment syntax used in the text document.
| Enumerator | |
|---|---|
| SingleLineBash |
|
| SingleLineC |
|
| MultiLineC |
|
|
strong |
|
strong |
Node kind in the document tree.
| Enumerator | |
|---|---|
| Bool | Boolean leaf. |
| Comment | Comment node. |
| Container | Group or list. |
| Double | Double leaf. |
| Integer | Integer leaf. |
| String | Text leaf ( |
| Binary | Binary leaf ( |
| Value | Any leaf ( |
|
constexpr |
|
constexprnoexcept |
Converts a CommentType to a human-readable string.
| t | Comment type to convert. |
|
constexprnoexcept |
Converts a ContainerType to a string.
| t | Container type to convert. |