BloombergLP::baltzo::TestLoader

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.

Synopsis

Declared in <baltzo_testloader.h>

class TestLoader
    : public Loader

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. Note that if no allocator was supplied at construction the default allocator in effect at construction is used.
loadTimeZone [virtual]Load time zone information for the specified timeZoneId.
print Write the set of time zones maintained by this object to the specified output stream in a human-readable format, and return a reference to stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that the format is not fully specified, and can change without notice.
setTimeZone setTimeZone overloads
operator BloombergLP::bslmf::NestedTraitDeclaration<TestLoader, UsesBslmaAllocator> Nested trait declaration for bslma::UsesBslmaAllocator.