[#BloombergLP-baltzo-TestLoader]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::TestLoader
:relfileprefix: ../../
:mrdocs:

Concrete test implementation of the `Loader` protocol for Zoneinfo&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;testloader&period;h&gt;`

[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&period; This test implementation maintains a mapping of time&hyphen;zone identifiers to `Zoneinfo` objects&period; Time zone information objects are associated with a time&hyphen;zone identifier using the `setTimeZone` method, and can be subsequently accessed by calling the protocol method `loadTimeZone` with the same identifier&period;

== 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&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baltzo/TestLoader/allocator_type.adoc[`allocator&lowbar;type`] 
| Allocator type used by this class&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baltzo/TestLoader/2constructor-08.adoc[`TestLoader`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/baltzo/TestLoader/2destructor.adoc[`&#126;TestLoader`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this `TestLoader` object&semi;
| xref:BloombergLP/baltzo/TestLoader/get_allocator.adoc[`get&lowbar;allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/baltzo/TestLoader/loadTimeZone.adoc[`loadTimeZone`]  [.small]#[virtual]#
| Load time zone information for the specified `timeZoneId`&period;
| xref:BloombergLP/baltzo/TestLoader/print.adoc[`print`] 
| Write this object&apos;s time zones to the specified output `stream`&period;
| xref:BloombergLP/baltzo/TestLoader/setTimeZone-01.adoc[`setTimeZone`] 
| `setTimeZone` overloads
| xref:BloombergLP/baltzo/TestLoader/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;TestLoader, UsesBslmaAllocator&gt;`] 
| Nested trait declaration for `bslma&colon;&colon;UsesBslmaAllocator`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
