class
#include <esp/core/Configuration.h>
Configuration
Contents
Derived classes
- class esp::metadata::attributes::AbstractAttributes
- Base class for all implemented attributes. Inherits from esp::
core:: AbstractFileBasedManagedObject so the attributes can be managed by a esp:: core:: ManagedContainer.
Constructors, destructors, conversion operators
- ~Configuration() defaulted virtual
Public functions
-
template<typename T>auto set(const std::
string& key, const T& value) -> bool -
template<typename T>auto setSubgroupValue(const std::
string& subgroupName, const std:: string& key, const T& value) -> bool -
auto setBool(const std::
string& key, bool value) -> bool -
auto setFloat(const std::
string& key, float value) -> bool -
auto setDouble(const std::
string& key, double value) -> bool -
auto setInt(const std::
string& key, int value) -> bool -
auto setString(const std::
string& key, const std:: string& value) -> bool -
auto setVec3(const std::
string& key, const Magnum:: Vector3& value) -> bool -
auto setQuat(const std::
string& key, const Magnum:: Quaternion& value) -> bool -
auto setRad(const std::
string& key, Magnum:: Rad value) -> bool -
template<typename T>auto get(const std::
string& key) const -> T -
template<typename T>auto getSubgroupValue(const std::
string& subgroupName, const std:: string& key) -> T -
auto getBool(const std::
string& key) const -> bool -
auto getFloat(const std::
string& key) const -> float -
auto getDouble(const std::
string& key) const -> double -
auto getInt(const std::
string& key) const -> int -
auto getString(const std::
string& key) const -> std:: string -
auto getVec3(const std::
string& key) const -> Magnum:: Vector3 -
auto getQuat(const std::
string& key) const -> Magnum:: Quaternion -
auto getRad(const std::
string& key) const -> Magnum:: Rad -
auto getConfigSubgroupAsPtr(const std::
string& name) const -> std:: shared_ptr<Configuration> -
void setConfigSubSubgroup(Configuration& config,
const std::
string& subGroupName, const std:: string& subSubGroupName) -
auto getNumConfigSubgroups(const std::
string& name) const -> int -
auto addStringToGroup(const std::
string& key, const std:: string& value) -> int - Add a string to a group and return the resulting group size.
-
auto getStringGroup(const std::
string& key) const -> std:: vector<std:: string> - Collect and return strings in a key group.
- auto groups() const -> Corrade::Utility::ConfigurationGroup::Groups
- auto values() const -> Corrade::Utility::ConfigurationGroup::Values
- auto hasValues() const -> bool
-
auto hasValue(const std::
string& key) const -> bool -
auto removeValue(const std::
string& key) -> bool -
void setConfiguration(Corrade::
Utility:: ConfigurationGroup* _cfg)
Protected functions
-
auto addNewSubgroup(const std::
string& name) -> bool - if no subgroup named this will make one, otherwise does nothing.
Protected variables
Function documentation
bool esp:: core:: Configuration:: addNewSubgroup(const std:: string& name) protected
if no subgroup named this will make one, otherwise does nothing.
Returns | whether a group was made or not |
---|