NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
CRegistryReadGuard Class Reference

Search Toolkit Book for CRegistryReadGuard

CRegistry{Read,Write}Guard –. More...

#include <corelib/ncbireg.hpp>

+ Inheritance diagram for CRegistryReadGuard:
+ Collaboration diagram for CRegistryReadGuard:

Public Types

typedef CGuard< IRegistry, SSimpleReadLock< IRegistry > > TParent
 
- Public Types inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > >
typedef IRegistry resource_type
 
typedef resource_typeresource_ptr
 
typedef SSimpleReadLock< IRegistrylock_type
 
typedef SSimpleUnlock< IRegistryunlock_type
 
typedef CGuard< IRegistry, SSimpleReadLock< IRegistry >, SSimpleUnlock< IRegistry >, CGuard_Base::eReportTThisType
 
- Public Types inherited from CGuard_Base
enum  EReportExceptions { eReport , eSilent }
 Exception reporting options. More...
 

Public Member Functions

 CRegistryReadGuard (const IRegistry &reg)
 
- Public Member Functions inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > >
 CGuard (EEmptyGuard)
 
 CGuard (resource_type &resource)
 This constructor locks the resource passed. More...
 
 CGuard (EEmptyGuard, const lock_type &lock, const unlock_type &unlock=unlock_type())
 
 CGuard (resource_type &resource, const lock_type &lock, const unlock_type &unlock=unlock_type())
 This constructor locks the resource passed. More...
 
 ~CGuard ()
 Destructor releases the resource. More...
 
void Release ()
 Manually force the resource to be released. More...
 
void Guard (resource_type &resource)
 Manually force the guard to protect some other resource. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CGuard< IRegistry, SSimpleReadLock< IRegistry > >
resource_ptrGetResource (void)
 
lock_typeGetLock (void)
 
unlock_typeGetUnlock (void)
 
- Static Protected Member Functions inherited from CGuard_Base
static void ReportException (std::exception &ex)
 

Detailed Description

CRegistry{Read,Write}Guard –.

Guard classes to ensure one-thread-at-a-time access to registries.

Definition at line 1034 of file ncbireg.hpp.


The documentation for this class was generated from the following file:
Modified on Sat Feb 24 07:46:29 2024 by modify_doxy.py rev. 669887