|
BDE 4.14.0 Production release
|
#include <baltzo_loader.h>
Public Member Functions | |
| virtual | ~Loader () |
| Destroy this object. | |
| virtual int | loadTimeZone (Zoneinfo *result, const char *timeZoneId)=0 |
This class provides a protocol (a pure abstract interface) for loading a time zone object.
See baltzo_loader
|
virtual |
|
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.