Template Numerical Library version\ main:bb09b17
|
Public Member Functions | |
void | addDelimiter (const std::string &delimiter) |
Adds delimiter/section to the configuration description. | |
template<typename EntryType > | |
void | addEntry (const std::string &name, const std::string &description) |
Adds new entry to the configuration description. | |
template<typename EntryType > | |
void | addEntry (const std::string &name, const std::string &description, const EntryType &defaultValue) |
Adds new entry to the configuration description. | |
template<typename EntryType = std::string> | |
void | addEntryEnum (const EntryType entryEnum=EntryType{}) |
Adds new entry enumeration of type EntryType. | |
template<typename EntryType > | |
void | addList (const std::string &name, const std::string &description) |
Adds new list to the configuration description. | |
template<typename EntryType > | |
void | addList (const std::string &name, const std::string &description, const std::vector< EntryType > &defaultValue) |
Adds new list to the configuration description. | |
template<typename EntryType > | |
void | addRequiredEntry (const std::string &name, const std::string &description) |
Adds new entry to the configuration description, that requires set value. | |
template<typename EntryType > | |
void | addRequiredList (const std::string &name, const std::string &description) |
Adds new list to the configuration description, that requires specific value. | |
auto | begin () const noexcept |
auto | begin () noexcept |
auto | cbegin () const noexcept |
auto | cend () const noexcept |
auto | end () const noexcept |
auto | end () noexcept |
const ConfigEntryBase * | getEntry (const std::string &name) const |
Gets entry out of the configuration description. | |
Protected Attributes | |
ConfigEntryBase * | currentEntry = nullptr |
std::vector< std::unique_ptr< ConfigEntryBase > > | entries |
bool | isCurrentEntryList = false |
|
inline |
Adds delimiter/section to the configuration description.
delimiter | String that defines how the delimiter looks like. |
|
inline |
Adds new entry to the configuration description.
EntryType | Type of the entry. |
name | Name of the entry. |
description | More specific information about the entry. |
|
inline |
Adds new entry to the configuration description.
EntryType | Type of the entry. |
name | Name of the entry. |
description | More specific information about the entry. |
defaultValue | Default value of the entry. |
|
inline |
Adds new entry enumeration of type EntryType.
Adds new option of setting an entry value.
EntryType | Type of the entry enumeration. |
entryEnum | Value of the entry enumeration. |
|
inline |
Adds new list to the configuration description.
EntryType | Type of the list. |
name | Name of the list. |
description | More specific information about the list. |
|
inline |
Adds new list to the configuration description.
EntryType | Type of the list. |
name | Name of the list. |
description | More specific information about the list. |
defaultValue | Default value of the list. |
|
inline |
Adds new entry to the configuration description, that requires set value.
EntryType | Type of the entry. |
name | Name of the entry. |
description | More specific information about the entry. |
|
inline |
Adds new list to the configuration description, that requires specific value.
EntryType | Type of the list. |
name | Name of the list. |
description | More specific information about the list. |
|
inlinenodiscard |
Gets entry out of the configuration description.
name | Name of the entry. |