BloombergLP::baltzo::TestLoader

Concrete test implementation of the Loader protocol for Zoneinfo.

Synopsis

Declared in <baltzo_testloader.h>

class TestLoader
    : public Loader

Description

This class provides a concrete test implementation of the Loader protocol (an abstract interface) for obtaining a time zone. This test implementation maintains a mapping of time-zone identifiers to Zoneinfo objects. Time zone information objects are associated with a time-zone identifier using the setTimeZone method, and can be subsequently accessed by calling the protocol method loadTimeZone with the same identifier.

Base Classes

NameDescription
LoaderThis class provides a protocol (a pure abstract interface) for loading a time zone object.

Type Aliases

NameDescription
allocator_type Allocator type used by this class.

Member Functions

NameDescription
TestLoader [constructor]Constructors
~TestLoader [destructor] [virtual]Destroy this TestLoader object;
get_allocator Return the allocator used by this object to supply memory.
loadTimeZone [virtual]Load time zone information for the specified timeZoneId.
print Write this object's time zones to the specified output stream.
setTimeZone setTimeZone overloads
operator BloombergLP::bslmf::NestedTraitDeclaration<TestLoader, UsesBslmaAllocator> Nested trait declaration for bslma::UsesBslmaAllocator.