Class Scine::Utils::UniversalSettings::GenericDescriptor

class GenericDescriptor

Wrapper around SettingDescriptor that hides the setting type.

Makes it possible to handle setting descriptors as objects (but is in principle similar to a pointer to the base class SettingDescriptor).

Public Types

enum Type

To store what type the setting descriptor is for.

Values:

Bool
Int
Double
String
File
Directory
OptionList
SettingCollection
ParametrizedOptionList
IntList
StringList
CollectionList

Public Functions

Type getType() const

Extract what type a setting descriptor is for.

const std::string &getPropertyDescription() const

Fetches the string describing what the setting descriptor is for.

const GenericValue getDefaultValue() const

Fetches a type-erased representation of the setting descriptor’s default value.