dxd - dynax driver framework 2.1.0d49
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)
 
reference & initialize (cf_object_t cf_object, bool retain=true)
 
 operator bool () const noexcept
 
 operator cf_object_t () const noexcept
 
 operator container () const try
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
 operator value_t () const
 
bool operator!= (cf_object_t 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
 
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <!std::is_same_v<petty_t, ::CFTypeRef>>>
 operator::CFTypeRef () const noexcept
 
preferenceoperator= (::CFPropertyListRef value)
 
template<typename value_t , typename = cf::enable_if_convertible<value_t>>
preferenceoperator= (value_t value)
 
bool operator== (cf_object_t 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)
 
reference & release () noexcept
 
reference & retain () noexcept
 
preferencesynchronize () noexcept
 
 ~preference () noexcept
 

Public Attributes

::CFStringRef cf_type_desc = nullptr
 
::CFStringRef cf_type_id = nullptr
 

Protected Attributes

cf_object_t cf_object = nullptr
 

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()

template<typename cf_object_t >
reference & dx::cf::reference< cf_object_t >::initialize ( cf_object_t cf_object,
bool retain = true )
inlineinherited
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator bool()

template<typename cf_object_t >
dx::cf::reference< cf_object_t >::operator bool ( ) const
inlinenoexceptinherited

◆ operator cf_object_t()

template<typename cf_object_t >
dx::cf::reference< cf_object_t >::operator cf_object_t ( ) const
inlinenoexceptinherited

◆ operator container()

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

◆ operator value_t()

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

◆ operator!=()

template<typename cf_object_t >
bool dx::cf::reference< cf_object_t >::operator!= ( cf_object_t 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()

template<typename cf_object_t >
dx::cf::reference< cf_object_t >::operator::CFTypeID ( ) const
inlinenoexceptinherited

◆ operator::CFTypeRef()

template<typename cf_object_t >
template<typename petty_t = cf_object_t, typename = typename std::enable_if_t <!std::is_same_v<petty_t, ::CFTypeRef>>>
dx::cf::reference< cf_object_t >::operator::CFTypeRef ( ) 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==()

template<typename cf_object_t >
bool dx::cf::reference< cf_object_t >::operator== ( cf_object_t 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()

template<typename cf_object_t >
reference & dx::cf::reference< cf_object_t >::release ( )
inlinenoexceptinherited
+ Here is the caller graph for this function:

◆ retain()

template<typename cf_object_t >
reference & dx::cf::reference< cf_object_t >::retain ( )
inlinenoexceptinherited
+ Here is the caller graph for this function:

◆ synchronize()

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

Member Data Documentation

◆ cf_object

template<typename cf_object_t >
cf_object_t dx::cf::reference< cf_object_t >::cf_object = nullptr
protectedinherited

◆ cf_type_desc

template<typename cf_object_t >
::CFStringRef dx::cf::reference< cf_object_t >::cf_type_desc = nullptr
inherited

◆ cf_type_id

template<typename cf_object_t >
::CFStringRef dx::cf::reference< cf_object_t >::cf_type_id = nullptr
inherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Wed Feb 28 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.