dxd - dynax driver framework  3211
cross platform open source driver development framework
dx::cf::preference Class Reference

persistant storarage usage: preference[key]= value; value= preference[key]; value= preference[key](default_value); More...

#include <dx_mach.h>

+ Inheritance diagram for dx::cf::preference:

Public Member Functions

preferenceerase (::CFStringRef key=nullptr)
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
 operator value_t () const
 
::CFPropertyListRef operator() (::CFPropertyListRef dflt) const
 
::CFDictionaryRef operator() (::CFDictionaryRef dflt) const noexcept
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t operator() (value_t dflt) const
 
 operator::CFArrayRef () const noexcept
 
 operator::CFDictionaryRef () const noexcept
 
 operator::CFPropertyListRef () const
 
preferenceoperator= (::CFDictionaryRef properties) noexcept
 
preferenceoperator= (::CFPropertyListRef value)
 
template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
preferenceoperator= (value_t value)
 
preference operator[] (::CFStringRef key) const
 
template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference operator[] (key_t key) const
 
 preference (::CFStringRef application=::kCFPreferencesCurrentApplication, ::CFStringRef user=::kCFPreferencesCurrentUser, ::CFStringRef host=::kCFPreferencesCurrentHost, ::CFStringRef key=nullptr)
 
 ~preference () noexcept
 

Detailed Description

persistant storarage usage: preference[key]= value; value= preference[key]; value= preference[key](default_value);

Constructor & Destructor Documentation

◆ preference()

dx::cf::preference::preference ( ::CFStringRef  application = ::kCFPreferencesCurrentApplication,
::CFStringRef  user = ::kCFPreferencesCurrentUser,
::CFStringRef  host = ::kCFPreferencesCurrentHost,
::CFStringRef  key = nullptr 
)
inline

◆ ~preference()

dx::cf::preference::~preference ( )
inlinenoexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ erase()

preference& dx::cf::preference::erase ( ::CFStringRef  key = nullptr)
inline
+ Here is the caller graph for this function:

◆ operator value_t()

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
dx::cf::preference::operator value_t ( ) const
inline

◆ operator()() [1/3]

::CFPropertyListRef dx::cf::preference::operator() ( ::CFPropertyListRef  dflt) const
inline

◆ operator()() [2/3]

::CFDictionaryRef dx::cf::preference::operator() ( ::CFDictionaryRef  dflt) const
inlinenoexcept

◆ operator()() [3/3]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
value_t dx::cf::preference::operator() ( value_t  dflt) const
inline

◆ operator::CFArrayRef()

dx::cf::preference::operator::CFArrayRef ( ) const
inlinenoexcept

◆ operator::CFDictionaryRef()

dx::cf::preference::operator::CFDictionaryRef ( ) const
inlinenoexcept

◆ operator::CFPropertyListRef()

dx::cf::preference::operator::CFPropertyListRef ( ) const
inline

◆ operator=() [1/3]

preference& dx::cf::preference::operator= ( ::CFDictionaryRef  properties)
inlinenoexcept

◆ operator=() [2/3]

preference& dx::cf::preference::operator= ( ::CFPropertyListRef  value)
inline

◆ operator=() [3/3]

template<typename value_t , typename = typename cf::enable_if_convertible<value_t>::type>
preference& dx::cf::preference::operator= ( value_t  value)
inline
+ Here is the call graph for this function:

◆ operator[]() [1/2]

preference dx::cf::preference::operator[] ( ::CFStringRef  key) const
inline

◆ operator[]() [2/2]

template<typename key_t , typename = typename cf::enable_if_convertible<key_t>::type>
preference dx::cf::preference::operator[] ( key_t  key) const
inline

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

(c) copyright 2009 dynamic acoustics e.U. generated on Sat Aug 22 2020

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.