filesaver
filesaver::services::settings::SettingsService Class Reference

#include <SettingsService.h>

Public Member Functions

 SettingsService (boost::filesystem::path settingsPath)
 
bool loadSettings ()
 
bool saveSettings ()
 
template<typename T >
std::optional< T > get (const std::string &key)
 
template<typename T >
void set (const std::string &key, T value)
 
const std::string getSupportDirectoryPath ()
 

Static Public Member Functions

static SettingsService defaultForMac ()
 

Detailed Description

Definition at line 17 of file SettingsService.h.

Constructor & Destructor Documentation

◆ SettingsService()

filesaver::services::settings::SettingsService::SettingsService ( boost::filesystem::path  settingsPath)
explicit

Definition at line 10 of file SettingsService.cpp.

Member Function Documentation

◆ defaultForMac()

SettingsService filesaver::services::settings::SettingsService::defaultForMac ( )
static

Definition at line 51 of file SettingsService.cpp.

◆ get()

template<typename T >
std::optional<T> filesaver::services::settings::SettingsService::get ( const std::string &  key)
inline

Definition at line 26 of file SettingsService.h.

◆ getSupportDirectoryPath()

const std::string filesaver::services::settings::SettingsService::getSupportDirectoryPath ( )

Definition at line 44 of file SettingsService.cpp.

◆ loadSettings()

bool filesaver::services::settings::SettingsService::loadSettings ( )

Definition at line 14 of file SettingsService.cpp.

◆ saveSettings()

bool filesaver::services::settings::SettingsService::saveSettings ( )

Definition at line 36 of file SettingsService.cpp.

◆ set()

template<typename T >
void filesaver::services::settings::SettingsService::set ( const std::string &  key,
value 
)
inline

Definition at line 43 of file SettingsService.h.


The documentation for this class was generated from the following files: