Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

baltzo::Loader Class Reference

#include <baltzo_loader.h>

Inheritance diagram for baltzo::Loader:
baltzo::DataFileLoader baltzo::TestLoader

List of all members.

Public Member Functions

virtual ~Loader ()
virtual int loadTimeZone (Zoneinfo *result, const char *timeZoneId)=0

Detailed Description

This class provides a protocol (a pure abstract interface) for loading a time zone object.

See Component baltzo_loader


Constructor & Destructor Documentation

virtual baltzo::Loader::~Loader (  )  [virtual]

Destroy this object.


Member Function Documentation

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.


The documentation for this class was generated from the following file: