File Information
Library: IoT/Settings
Package: SettingsService
Header: IoT/Settings/SettingsServiceImpl.h
Description
Implementation of SettingService.
Inheritance
Direct Base Classes: SettingsService
All Base Classes: SettingsService
Member Summary
Member Functions: getBool, getDouble, getInt16, getInt32, getInt64, getString, getUInt16, getUInt32, getUInt64, haveKey, haveSettingsKey, keys, remove, save, setBool, setDouble, setInt16, setInt32, setInt64, setString, setUInt16, setUInt32, setUInt64, settingsKeys
Inherited Functions: getBool, getDouble, getInt16, getInt32, getInt64, getString, getUInt16, getUInt32, getUInt64, haveKey, haveSettingsKey, keys, remove, save, setBool, setDouble, setInt16, setInt32, setInt64, setString, setUInt16, setUInt32, setUInt64, settingsKeys
Types Aliases
Ptr
using Ptr = Poco::SharedPtr < SettingsServiceImpl >;
Constructors
SettingsServiceImpl
SettingsServiceImpl(
Poco::Util::AbstractConfiguration::Ptr pGlobalConfiguration,
Poco::AutoPtr < Poco::Util::PropertyFileConfiguration > pSettings,
const std::string & settingsPath
);
Creates the SettingsServiceImpl, using the given global configuration.
Destructor
~SettingsServiceImpl
Destroys the SettingsServiceImpl.
Member Functions
getBool
Poco::Optional < double > getBool(
const std::string & key,
const Poco::Optional < double > & deflt
) const;
getDouble
Poco::Optional < double > getDouble(
const std::string & key,
const Poco::Optional < double > & deflt
) const;
getInt16
Poco::Optional < Poco::Int16 > getInt16(
const std::string & key,
const Poco::Optional < Poco::Int16 > & deflt
) const;
getInt32
Poco::Optional < Poco::Int32 > getInt32(
const std::string & key,
const Poco::Optional < Poco::Int32 > & deflt
) const;
getInt64
Poco::Optional < Poco::Int64 > getInt64(
const std::string & key,
const Poco::Optional < Poco::Int64 > & deflt
) const;
getString
Poco::Optional < std::string > getString(
const std::string & key,
const Poco::Optional < std::string > & deflt
) const;
getUInt16
Poco::Optional < Poco::UInt16 > getUInt16(
const std::string & key,
const Poco::Optional < Poco::UInt16 > & deflt
) const;
getUInt32
Poco::Optional < Poco::UInt32 > getUInt32(
const std::string & key,
const Poco::Optional < Poco::UInt32 > & deflt
) const;
getUInt64
Poco::Optional < Poco::UInt64 > getUInt64(
const std::string & key,
const Poco::Optional < Poco::UInt64 > & deflt
) const;
haveKey
bool haveKey(
const std::string & key
) const;
haveSettingsKey
bool haveSettingsKey(
const std::string & key
) const;
keys
std::vector < std::string > keys(
const std::string & key
) const;
See also: IoT::Settings::SettingsService::keys()
remove
void remove(
const std::string & key
);
See also: IoT::Settings::SettingsService::remove()
save
void save() const;
See also: IoT::Settings::SettingsService::save()
setBool
void setBool(
const std::string & key,
bool value
);
setDouble
void setDouble(
const std::string & key,
double value
);
setInt16
void setInt16(
const std::string & key,
Poco::Int16 value
);
setInt32
void setInt32(
const std::string & key,
Poco::Int32 value
);
setInt64
void setInt64(
const std::string & key,
Poco::Int64 value
);
setString
void setString(
const std::string & key,
const std::string & value
);
setUInt16
void setUInt16(
const std::string & key,
Poco::UInt16 value
);
setUInt32
void setUInt32(
const std::string & key,
Poco::UInt32 value
);
setUInt64
void setUInt64(
const std::string & key,
Poco::UInt64 value
);
settingsKeys
std::vector < std::string > settingsKeys(
const std::string & key
) const;