Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

baltzo::DefaultZoneinfoCacheScopedGuard Class Reference

#include <baltzo_defaultzoneinfocache.h>

List of all members.

Public Member Functions

 DefaultZoneinfoCacheScopedGuard (ZoneinfoCache *cache)
 ~DefaultZoneinfoCacheScopedGuard ()

Detailed Description

Upon construction, an object of this class saves the current default Zoneinfo cache and installs the user-specified Zoneinfo cache as the default. On destruction, the previous default Zoneinfo cache is restored. This class is not even minimally thread safe. For terminology see bsldoc_glossary.

See Component baltzo_defaultzoneinfocache


Constructor & Destructor Documentation

baltzo::DefaultZoneinfoCacheScopedGuard::DefaultZoneinfoCacheScopedGuard ( ZoneinfoCache cache  )  [explicit]

Create a scoped guard that installs the specified cache as the default Zoneinfo cache. Note that the pre-existing default time Zoneinfo cache is automatically restored on destruction of this object.

baltzo::DefaultZoneinfoCacheScopedGuard::~DefaultZoneinfoCacheScopedGuard (  ) 

Restore the default Zoneinfo cache that was in place when this scoped guard was created, and destroy this guard.


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