[#BloombergLP-baltzo-TestLoader] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::TestLoader :relfileprefix: ../../ :mrdocs: Concrete test implementation of the `Loader` protocol for Zoneinfo. == Synopsis Declared in `<baltzo_testloader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class TestLoader : public xref:BloombergLP/baltzo/Loader.adoc[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 [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/baltzo/Loader.adoc[Loader]` | This class provides a protocol (a pure abstract interface) for loading a time zone object. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baltzo/TestLoader/allocator_type.adoc[`allocator_type`] | Allocator type used by this class. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baltzo/TestLoader/2constructor-08.adoc[`TestLoader`] [.small]#[constructor]# | Constructors | xref:BloombergLP/baltzo/TestLoader/2destructor.adoc[`~TestLoader`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this `TestLoader` object; | xref:BloombergLP/baltzo/TestLoader/get_allocator.adoc[`get_allocator`] | Return the allocator used by this object to supply memory. | xref:BloombergLP/baltzo/TestLoader/loadTimeZone.adoc[`loadTimeZone`] [.small]#[virtual]# | Load time zone information for the specified `timeZoneId`. | xref:BloombergLP/baltzo/TestLoader/print.adoc[`print`] | Write this object's time zones to the specified output `stream`. | xref:BloombergLP/baltzo/TestLoader/setTimeZone-01.adoc[`setTimeZone`] | `setTimeZone` overloads | xref:BloombergLP/baltzo/TestLoader/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<TestLoader, UsesBslmaAllocator>`] | Nested trait declaration for `bslma::UsesBslmaAllocator`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#