SGTimeZone Class Reference

SGTimeZone is derived from geocoord, and stores the timezone centerpoint, as well as the countrycode and the timezone descriptor. More...

#include <timezone.h>

Inherits SGGeoCoord.

List of all members.

Public Member Functions

 SGTimeZone ()
 Default constructor.
 SGTimeZone (float la, float lo, char *cc, char *desc)
 Build a timezone object with a specifed latitude, longitude, country code, and descriptor.
 SGTimeZone (const char *infoString)
 Build a timezone object from a textline in zone.tab.
 SGTimeZone (const SGTimeZone &other)
 The copy constructor.
virtual ~SGTimeZone ()
 Virutal destructor.
virtual const char * getDescription ()
 Return the descriptor string.

Detailed Description

SGTimeZone is derived from geocoord, and stores the timezone centerpoint, as well as the countrycode and the timezone descriptor.

The latter is used in order to get the local time.

Definition at line 42 of file timezone.h.


Constructor & Destructor Documentation

SGTimeZone::SGTimeZone ( float  la,
float  lo,
char *  cc,
char *  desc 
)

Build a timezone object with a specifed latitude, longitude, country code, and descriptor.

Parameters:
la latitude
lo longitude
cc country code
desc descriptor

Definition at line 37 of file timezone.cxx.

SGTimeZone::SGTimeZone ( const char *  infoString  ) 

Build a timezone object from a textline in zone.tab.

Parameters:
infoString the textline from zone.tab

Definition at line 45 of file timezone.cxx.

SGTimeZone::SGTimeZone ( const SGTimeZone other  ) 

The copy constructor.

Parameters:
other the source object

Definition at line 116 of file timezone.cxx.


Member Function Documentation

virtual const char* SGTimeZone::getDescription (  )  [inline, virtual]

Return the descriptor string.

Returns:
descriptor string (char array)

Definition at line 92 of file timezone.h.


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

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1