Quick Links: |
#include <baltzo_loader.h>
Public Member Functions | |
virtual | ~Loader () |
virtual int | loadTimeZone (Zoneinfo *result, const char *timeZoneId)=0 |
This class provides a protocol (a pure abstract interface) for loading a time zone object.
virtual baltzo::Loader::~Loader | ( | ) | [virtual] |
Destroy this object.
virtual int baltzo::Loader::loadTimeZone | ( | Zoneinfo * | result, | |
const char * | timeZoneId | |||
) | [pure virtual] |
Load into the specified result
the time zone information for the time zone identified by the specified timeZoneId
. Return 0 on success, and a non-zero value otherwise. A return status of ErrorCode::k_UNSUPPORTED_ID
indicates that timeZoneId
is not recognized. If an error occurs during this operation, result
will be left in a valid, but otherwise unspecified state. On return, result
will be well-formed (see ZoneinfoUtil::isWellFormed
) and result->identifier()
will be timeZoneId
(concrete implementations not meeting those constraints will not be usable by other other components in this package -- e.g., baltzo_zoneinfocache
).
Implemented in baltzo::DataFileLoader, and baltzo::TestLoader.