CommonLib
Loading...
Searching...
No Matches
hedgedev::csl::cfg::registry Namespace Reference

Functions

bool TryParseRegistryPath (const std::filesystem::path &in_rPath, HKEY &out_rHKey, std::wstring &out_rSubKey)
template<typename T>
bool Read (const std::filesystem::path &in_rPath, const std::filesystem::path &in_rValueName, T &out_rData)
template<typename T>
bool Read (const std::filesystem::path &in_rPath, T &out_rData)
template<typename T>
bool Write (const std::filesystem::path &in_rPath, const std::filesystem::path &in_rValueName, const T &in_rData)
template<typename T>
bool Write (const std::filesystem::path &in_rPath, const T &in_rData)

Function Documentation

◆ Read() [1/2]

template<typename T>
bool hedgedev::csl::cfg::registry::Read ( const std::filesystem::path & in_rPath,
const std::filesystem::path & in_rValueName,
T & out_rData )
inline

Reads a value from the registry.

Parameters
in_rPathThe path to the registry key containing the value.
in_rValueNameThe name of the registry value.
out_rDataThe value to set.
Returns
true if the value was read successfully. Otherwise, false.

◆ Read() [2/2]

template<typename T>
bool hedgedev::csl::cfg::registry::Read ( const std::filesystem::path & in_rPath,
T & out_rData )
inline

Reads a value from the registry.

Parameters
in_rPathThe path to the registry value.
out_rDataThe value to set.
Returns
true if the value was read successfully. Otherwise, false.

◆ TryParseRegistryPath()

bool hedgedev::csl::cfg::registry::TryParseRegistryPath ( const std::filesystem::path & in_rPath,
HKEY & out_rHKey,
std::wstring & out_rSubKey )
inline

◆ Write() [1/2]

template<typename T>
bool hedgedev::csl::cfg::registry::Write ( const std::filesystem::path & in_rPath,
const std::filesystem::path & in_rValueName,
const T & in_rData )
inline

Writes a value to the registry.

Parameters
in_rPathThe path to the registry key containing the value.
in_rValueNameThe name of the registry value.
in_rDataThe value to write.
Returns
true if the value was written successfully. Otherwise, false.

◆ Write() [2/2]

template<typename T>
bool hedgedev::csl::cfg::registry::Write ( const std::filesystem::path & in_rPath,
const T & in_rData )
inline

Writes a value to the registry.

Parameters
in_rPathThe path to the registry value.
in_rDataThe value to write.
Returns
true if the value was written successfully. Otherwise, false.