FreeRDP
SdlPref Class Reference

#include <sdl_prefs.hpp>

Public Member Functions

std::string get_pref_file ()
 
std::string get_string (const std::string &key, const std::string &fallback="")
 
int64_t get_int (const std::string &key, int64_t fallback=0)
 
bool get_bool (const std::string &key, bool fallback=false)
 
std::vector< std::string > get_array (const std::string &key, const std::vector< std::string > &fallback={})
 

Static Public Member Functions

static std::shared_ptr< SdlPrefinstance (const std::string &name=SdlPref::get_default_file())
 

Detailed Description

FreeRDP: A Remote Desktop Protocol Implementation SDL Prefs

Copyright 2022 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Member Function Documentation

◆ get_array()

std::vector< std::string > SdlPref::get_array ( const std::string &  key,
const std::vector< std::string > &  fallback = {} 
)
Here is the call graph for this function:

◆ get_bool()

bool SdlPref::get_bool ( const std::string &  key,
bool  fallback = false 
)
Here is the call graph for this function:

◆ get_int()

int64_t SdlPref::get_int ( const std::string &  key,
int64_t  fallback = 0 
)
Here is the call graph for this function:

◆ get_pref_file()

std::string SdlPref::get_pref_file ( )

◆ get_string()

std::string SdlPref::get_string ( const std::string &  key,
const std::string &  fallback = "" 
)

◆ instance()

std::shared_ptr< SdlPref > SdlPref::instance ( const std::string &  name = SdlPref::get_default_file())
static
Here is the caller graph for this function:

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