Public Member Functions | Static Public Member Functions

Barry::TimeZones Class Reference

Creates a vector of TimeZone objects either based on the library's hard coded StaticTimeZone list, or by extracting the time zone database from a given device. More...

#include <r_timezone.h>

Collaboration diagram for Barry::TimeZones:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimeZones ()
 Creates the list based on the library's hard coded StaticTimeZone list.
 TimeZones (Barry::Mode::Desktop &desktop)
 Extracts the time zone database from the given device.

Static Public Member Functions

static bool IsLoadable (Barry::Mode::Desktop &desktop)
 Static helper function that returns true if the device referenced by desktop has a time zone database.

Detailed Description

Creates a vector of TimeZone objects either based on the library's hard coded StaticTimeZone list, or by extracting the time zone database from a given device.

After construction, the vector will be sorted according to time zone, with west-most first.

Definition at line 174 of file r_timezone.h.


Constructor & Destructor Documentation

Barry::TimeZones::TimeZones (  ) 

Creates the list based on the library's hard coded StaticTimeZone list.

Definition at line 376 of file r_timezone.cc.

References Barry::GetStaticTimeZoneTable().

Here is the call graph for this function:

Barry::TimeZones::TimeZones ( Barry::Mode::Desktop desktop  )  [explicit]

Extracts the time zone database from the given device.

Throws an exception if the device does not have a time zones database.

Definition at line 403 of file r_timezone.cc.

References Barry::Mode::Desktop::GetDBID(), and Barry::Mode::Desktop::LoadDatabase().

Here is the call graph for this function:


Member Function Documentation

bool Barry::TimeZones::IsLoadable ( Barry::Mode::Desktop desktop  )  [static]

Static helper function that returns true if the device referenced by desktop has a time zone database.

Definition at line 414 of file r_timezone.cc.

References Barry::Mode::Desktop::GetDBDB().

Here is the call graph for this function:


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