Represents a key used in TOML data mappings.
More...
#include <ssgx_config_t.h>
|
| KeyType | type_ |
| | The type of key: integer or string.
|
| |
| int | index_key_ {} |
| | Store the integer key (if type is integer)
|
| |
| std::string | str_key_ |
| | Store the string key (if type is string)
|
| |
Represents a key used in TOML data mappings.
The key can be either an integer or a string. This struct is used to store and distinguish between integer and string keys in TOML data.
◆ KeyType
| Enumerator |
|---|
| Integer | The key is an Integer type.
|
| String | The key is a String type.
|
◆ TomlKey() [1/2]
| ssgx::config_t::TomlKey::TomlKey |
( |
int | index_key | ) |
|
|
inlineexplicit |
Constructs a TomlKey with an integer key.
- Parameters
-
| [in] | index_key | The integer key used for mapping data |
◆ TomlKey() [2/2]
| ssgx::config_t::TomlKey::TomlKey |
( |
const char * | str_key | ) |
|
|
inlineexplicit |
Constructs a TomlKey with a string key.
- Parameters
-
| [in] | str_key | The string key used for mapping data |
◆ ~TomlKey()
| ssgx::config_t::TomlKey::~TomlKey |
( |
| ) |
|
|
default |
◆ index_key_
| int ssgx::config_t::TomlKey::index_key_ {} |
Store the integer key (if type is integer)
◆ str_key_
| std::string ssgx::config_t::TomlKey::str_key_ |
Store the string key (if type is string)
◆ type_
| KeyType ssgx::config_t::TomlKey::type_ |
The type of key: integer or string.
The documentation for this struct was generated from the following file: