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

persistant system configuration storarage More...

#include <sc_preference.h>

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

Classes

class  lock
 

Public Types

typedef std::map< cf::type< const char * >, reference<::CFPropertyListRef > > container
 

Public Member Functions

preferenceapply ()
 
::CFIndex count () const noexcept
 
 dx_catchall_rethrow () preference &commit()
 commit changes to persistent storage. Needs to have root access rights
 
preferenceerase (::CFStringRef key=nullptr) noexcept
 
preferenceerase (const char *key)
 
referenceinitialize (::SCPreferencesRef cf_object, bool retain=true)
 
dx_catchall_rethrow() typedef cf operator array () const try
 
virtual operator bool () const noexcept
 
 operator cf::dictionary<::CFDictionaryRef > () const
 
 operator cf::dictionary<> () const
 
 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)
 
preferenceoperator= (const preference &preference)
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
preferenceoperator= (value_t value)
 
virtual bool operator== (::CFTypeID cf_type) const noexcept
 
bool operator== (::SCPreferencesRef cf_object) const noexcept
 
preference operator[] (::CFStringRef key) const
 
template<typename key_t , typename = cf::enable_if_convertible<key_t>>
preference operator[] (key_t key) const
 
 preference (::CFStringRef id, ::CFRunLoopRef runloop, ::CFStringRef path=nullptr)
 
 preference (::CFStringRef id, ::CFStringRef path=nullptr)
 
referencerelease () noexcept
 
const referenceretain () const noexcept
 
preferencesynchronize () noexcept
 
 ~preference () noexcept override
 

Public Attributes

std::vector< std::function< void(::SCPreferencesNotification type)> > interest
 

Protected Member Functions

virtual void notify (::SCPreferencesNotification type)
 

Protected Attributes

::SCPreferencesRef cf_object
 

Detailed Description

persistant system configuration storarage

Member Typedef Documentation

◆ container

Constructor & Destructor Documentation

◆ preference() [1/2]

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

◆ preference() [2/2]

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

◆ ~preference()

sc::preference::~preference ( )
inlineoverridenoexcept

Member Function Documentation

◆ apply()

preference & sc::preference::apply ( )
inline
+ Here is the caller graph for this function:

◆ count()

::CFIndex cf::reference< ::SCPreferencesRef >::count ( ) const
inlinenoexceptinherited

◆ dx_catchall_rethrow()

sc::preference::dx_catchall_rethrow ( ) &
inline

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

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

◆ erase() [1/2]

preference & sc::preference::erase ( ::CFStringRef key = nullptr)
inlinenoexcept
+ Here is the call graph for this function:

◆ erase() [2/2]

preference & sc::preference::erase ( const char * key)
inline
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize()

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

◆ notify()

virtual void sc::preference::notify ( ::SCPreferencesNotification type)
inlineprotectedvirtual

◆ operator array()

dx_catchall_rethrow() typedef cf sc::preference::operator array ( ) const
inline

◆ operator bool()

virtual cf::reference< ::SCPreferencesRef >::operator bool ( ) const
inlinevirtualnoexceptinherited

◆ operator cf::dictionary<::CFDictionaryRef >()

sc::preference::operator cf::dictionary<::CFDictionaryRef > ( ) const
inline

◆ operator cf::dictionary<>()

sc::preference::operator cf::dictionary<> ( ) const
inline

◆ operator container()

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

◆ operator type<>()

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

◆ operator value_t()

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

◆ operator!=()

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

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

◆ operator::CFArrayRef()

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

◆ operator::CFPropertyListRef()

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

◆ operator::CFTypeID()

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

◆ operator::CFTypeRef()

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

◆ operator::SCPreferencesRef()

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

◆ operator=() [1/3]

preference & sc::preference::operator= ( ::CFPropertyListRef value)
inline
+ Here is the call graph for this function:

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ operator==() [1/2]

virtual bool cf::reference< ::SCPreferencesRef >::operator== ( ::CFTypeID cf_type) const
inlinevirtualnoexceptinherited

◆ operator==() [2/2]

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

◆ operator[]() [1/2]

preference sc::preference::operator[] ( ::CFStringRef key) const
inline
+ Here is the caller graph for this function:

◆ operator[]() [2/2]

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

◆ release()

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

◆ retain()

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

◆ synchronize()

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

Member Data Documentation

◆ cf_object

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

◆ interest

std::vector<std::function <void(::SCPreferencesNotification type)> > sc::preference::interest

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

(c) copyright 2009 dynamic acoustics e.U. generated on Thu Jan 23 2025

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.