Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::config_t::TomlKey Struct Reference

Represents a key used in TOML data mappings. More...

#include <ssgx_config_t.h>

Public Types

enum class  KeyType { Integer = 0 , String = 1 }
 

Public Member Functions

 TomlKey (int index_key)
 Constructs a TomlKey with an integer key.
 
 TomlKey (const char *str_key)
 Constructs a TomlKey with a string key.
 
 ~TomlKey ()=default
 Destruction.
 

Public Attributes

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)
 

Detailed Description

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.

Member Enumeration Documentation

◆ KeyType

Enumerator
Integer 

The key is an Integer type.

String 

The key is a String type.

Constructor & Destructor Documentation

◆ TomlKey() [1/2]

ssgx::config_t::TomlKey::TomlKey ( int index_key)
inlineexplicit

Constructs a TomlKey with an integer key.

Parameters
[in]index_keyThe 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_keyThe string key used for mapping data

◆ ~TomlKey()

ssgx::config_t::TomlKey::~TomlKey ( )
default

Destruction.

Member Data Documentation

◆ 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: