Rudiments
Public Member Functions
timezonefile Class Reference

List of all members.

Public Member Functions

 timezonefile ()
 timezonefile (const timezonefile &t)
timezonefileoperator= (const timezonefile &t)
 ~timezonefile ()
bool parseFile (const char *filename)
uint64_t getTimeCount ()
uint64_t * getTransitionTimes ()
uint64_t getTransitionTime (int32_t index)
unsigned char * getLocalTimes ()
unsigned char getLocalTimes (int32_t index)
uint64_t getTypeCount ()
ttinfo ** getTimeTypeInfos ()
ttinfogetTimeTypeInfo (int32_t index)
uint64_t getLeapCount ()
uint64_t * getLeapSecondTimes ()
uint64_t getLeapSecondTime (int32_t index)
uint64_t * getTotalLeapSeconds ()
uint64_t getTotalLeapSeconds (int32_t index)
uint64_t getIsSTDCount ()
unsigned char * getStandardOrWallIndicators ()
unsigned char getStandardOrWallIndicator (int32_t index)
uint64_t getIsGMTCount ()
unsigned char * getUTCOrLocalIndicators ()
unsigned char getUTCOrLocalIndicator (int32_t index)
uint64_t getCharacterCount ()
unsigned char * getRawTimeZoneString ()
unsigned char ** getTimeZoneStrings ()
unsigned char * getTimeZoneString (int32_t index)
void print ()

Detailed Description

The timezonefile class provides methods for parsing and accessing timezone files such as are typically found in /usr/share/zoneinfo on unix.


Constructor & Destructor Documentation

timezonefile::timezonefile ( )

Creates an instance of the timezonefile class.

timezonefile::timezonefile ( const timezonefile t)

Creates an instance of the timezonefile class that is a copy of "t".

timezonefile::~timezonefile ( )

Delets this instance of the timezonefile class.


Member Function Documentation

uint64_t timezonefile::getCharacterCount ( )

Returns the number of characters in the raw time zone string.

uint64_t timezonefile::getIsGMTCount ( )

Returns the number of GMT/UTC or local indicators in the file.

uint64_t timezonefile::getIsSTDCount ( )

Returns the number of standard or wall indicators in the file.

uint64_t timezonefile::getLeapCount ( )

Returns the number of leap second times or total leap seconds in the file.

uint64_t timezonefile::getLeapSecondTime ( int32_t  index)

Returns the leap second time at "index".

uint64_t* timezonefile::getLeapSecondTimes ( )

Returns an array of leap second times.

unsigned char* timezonefile::getLocalTimes ( )

Returns an array of local times.

unsigned char timezonefile::getLocalTimes ( int32_t  index)

Returns the local time at "index".

unsigned char* timezonefile::getRawTimeZoneString ( )

Returns the raw time zone string.

unsigned char timezonefile::getStandardOrWallIndicator ( int32_t  index)

Returns the standard or wall indicator at "index".

unsigned char* timezonefile::getStandardOrWallIndicators ( )

Returns an array of standard or wall indicators.

uint64_t timezonefile::getTimeCount ( )

Returns the number of transition times or local times stored in the file.

ttinfo* timezonefile::getTimeTypeInfo ( int32_t  index)

Returns the time type info at "index".

ttinfo** timezonefile::getTimeTypeInfos ( )

Returns an array of time type info's.

unsigned char* timezonefile::getTimeZoneString ( int32_t  index)

Returns the time zone string at "index".

unsigned char** timezonefile::getTimeZoneStrings ( )

Returns an array of time zone strings.

uint64_t timezonefile::getTotalLeapSeconds ( int32_t  index)

Returns the total leap seconds at "index".

uint64_t* timezonefile::getTotalLeapSeconds ( )

Returns an array of total leap seconds.

uint64_t timezonefile::getTransitionTime ( int32_t  index)

Returns the transition time at "index".

uint64_t* timezonefile::getTransitionTimes ( )

Returns an array of transition times.

uint64_t timezonefile::getTypeCount ( )

Returns the number of time type info's stored in the file.

unsigned char timezonefile::getUTCOrLocalIndicator ( int32_t  index)

Returns the UTC or local indicator at "index".

unsigned char* timezonefile::getUTCOrLocalIndicators ( )

Returns an array of UTC or local indicators.

timezonefile& timezonefile::operator= ( const timezonefile t)

Makes this instance of the timezonefile class identical to "t".

bool timezonefile::parseFile ( const char *  filename)

Parses "filename". Returns true on success and false on failure.

void timezonefile::print ( )

Prints out a representation of the timezone file.