dxd - dynax driver framework 2.1.0d73
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::sc::preference Class Reference

persistant system configuration storarage More...

#include <dx_mach.h>

+ Inheritance diagram for dx::sc::preference:
+ Collaboration diagram for dx::sc::preference:

Classes

class  lock
 

Public Types

typedef std::map<::CFStringRef, ::CFTypeRef, cf::__string<::CFStringRef >::less > container
 

Public Member Functions

preferenceapply ()
 
 dx_catchall_rethrow () preference &commit()
 commit changes to persistent storage. Needs to have root access rights
 
preferenceerase (::CFStringRef key=nullptr)
 
preferenceerase (const char *key)
 
referenceinitialize (::SCPreferencesRef cf_object, bool retain=true)
 
 operator bool () const noexcept
 
 operator container () const try
 
 operator type<> () const noexcept
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
 operator value_t () const
 
bool operator!= (::SCPreferencesRef cf_object) const noexcept
 
::CFPropertyListRef operator() (::CFPropertyListRef dflt=nullptr) const
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t operator() (value_t dflt) const
 
 operator::CFArrayRef () const
 
 operator::CFPropertyListRef () const
 
 operator::CFTypeID () const noexcept
 
 operator::CFTypeRef () const noexcept
 
 operator::SCPreferencesRef () const noexcept
 
preferenceoperator= (::CFPropertyListRef value)
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
preferenceoperator= (value_t value)
 
bool operator== (::SCPreferencesRef cf_object) const noexcept
 
preference operator[] (::CFStringRef key) const
 
template<typename value_t >
value_t operator[] (::CFStringRef key) const
 
template<>
::CFPropertyListRef operator[] (::CFStringRef key) const
 
template<>
cf::dictionary operator[] (::CFStringRef key) const
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t operator[] (::CFStringRef key) const
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
preference operator[] (key_t key) const
 
 preference (::CFStringRef id, ::CFStringRef path=nullptr)
 
referencerelease () noexcept
 
referenceretain () noexcept
 
preferencesynchronize () noexcept
 
 ~preference () noexcept
 

Public Attributes

::CFStringRef cf_type_desc
 
::CFStringRef cf_type_id
 

Protected Attributes

::SCPreferencesRef cf_object
 

Detailed Description

persistant system configuration storarage

Member Typedef Documentation

◆ container

typedef std::map<::CFStringRef, ::CFTypeRef, cf::__string<::CFStringRef>::less> dx::sc::preference::container

Constructor & Destructor Documentation

◆ preference()

dx::sc::preference::preference ( ::CFStringRef id,
::CFStringRef path = nullptr )
inline

◆ ~preference()

dx::sc::preference::~preference ( )
inlinenoexcept

Member Function Documentation

◆ apply()

preference & dx::sc::preference::apply ( )
inline

◆ dx_catchall_rethrow()

dx::sc::preference::dx_catchall_rethrow ( ) &
inline

commit changes to persistent storage. Needs to have root access rights

Todo
cs::preference: hack commit/apply: exchange dx_assert with dx_pass again

◆ erase() [1/2]

preference & dx::sc::preference::erase ( ::CFStringRef key = nullptr)
inline

◆ erase() [2/2]

preference & dx::sc::preference::erase ( const char * key)
inline

◆ initialize()

reference & dx::cf::reference< ::SCPreferencesRef >::initialize ( ::SCPreferencesRef cf_object,
bool retain = true )
inlineinherited

◆ operator bool()

dx::cf::reference< ::SCPreferencesRef >::operator bool ( ) const
inlinenoexceptinherited

◆ operator container()

dx::sc::preference::operator container ( ) const
inline

◆ operator type<>()

dx::cf::reference< ::SCPreferencesRef >::operator type<> ( ) const
noexceptinherited

◆ operator value_t()

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

◆ operator!=()

bool dx::cf::reference< ::SCPreferencesRef >::operator!= ( ::SCPreferencesRef cf_object) const
inlinenoexceptinherited

◆ operator()() [1/2]

::CFPropertyListRef dx::sc::preference::operator() ( ::CFPropertyListRef dflt = nullptr) const
inline

◆ operator()() [2/2]

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

◆ operator::CFArrayRef()

dx::sc::preference::operator::CFArrayRef ( ) const
inline

◆ operator::CFPropertyListRef()

dx::sc::preference::operator::CFPropertyListRef ( ) const
inline
+ Here is the call graph for this function:

◆ operator::CFTypeID()

dx::cf::reference< ::SCPreferencesRef >::operator::CFTypeID ( ) const
inlinenoexceptinherited

◆ operator::CFTypeRef()

dx::cf::reference< ::SCPreferencesRef >::operator::CFTypeRef ( ) const
inlinenoexceptinherited

◆ operator::SCPreferencesRef()

dx::cf::reference< ::SCPreferencesRef >::operator ::SCPreferencesRef ( ) const
inlinenoexceptinherited

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

bool dx::cf::reference< ::SCPreferencesRef >::operator== ( ::SCPreferencesRef cf_object) const
inlinenoexceptinherited

◆ operator[]() [1/6]

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

◆ operator[]() [2/6]

template<typename value_t >
value_t dx::sc::preference::operator[] ( ::CFStringRef key) const

◆ operator[]() [3/6]

template<>
::CFPropertyListRef dx::sc::preference::operator[] ( ::CFStringRef key) const
inline

◆ operator[]() [4/6]

template<>
cf::dictionary dx::sc::preference::operator[] ( ::CFStringRef key) const
inline

◆ operator[]() [5/6]

template<typename value_t , typename = cf::enable_if_convertible<value_t>>
value_t dx::sc::preference::operator[] ( ::CFStringRef key) const
inline

◆ operator[]() [6/6]

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

◆ release()

reference & dx::cf::reference< ::SCPreferencesRef >::release ( )
inlinenoexceptinherited

◆ retain()

reference & dx::cf::reference< ::SCPreferencesRef >::retain ( )
inlinenoexceptinherited

◆ synchronize()

preference & dx::sc::preference::synchronize ( )
inlinenoexcept

Member Data Documentation

◆ cf_object

::SCPreferencesRef dx::cf::reference< ::SCPreferencesRef >::cf_object
protectedinherited

◆ cf_type_desc

::CFStringRef dx::cf::reference< ::SCPreferencesRef >::cf_type_desc
inherited

◆ cf_type_id

::CFStringRef dx::cf::reference< ::SCPreferencesRef >::cf_type_id
inherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Nov 15 2024

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.