[#BloombergLP-baltzo-TestLoader] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::TestLoader :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class TestLoader : public xref:BloombergLP/baltzo/Loader.adoc[Loader] ---- == 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. Note that if no allocator was supplied at construction the default allocator in effect at construction is used. | 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 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. | 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]#