SimGear - Simulator Construction Tools
SGTimeZone Class Reference

#include <timezone.h>

Public Member Functions

 SGTimeZone (const SGGeod &pt, char *cc, char *desc)
 
 SGTimeZone (const char *infoString)
 
 SGTimeZone (const SGTimeZone &other)
 
const SGVec3dcartCenterpoint () const
 
const char * getDescription ()
 

Private Attributes

SGVec3d centerpoint
 
std::string countryCode
 
std::string descriptor
 

Detailed Description

SGTimeZone 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 43 of file timezone.h.

Constructor & Destructor Documentation

SGTimeZone::SGTimeZone ( const SGGeod pt,
char *  cc,
char *  desc 
)

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

Parameters
ptcenterpoint
cccountry code
descdescriptor

Definition at line 42 of file timezone.cxx.

SGTimeZone::SGTimeZone ( const char *  infoString)

Build a timezone object from a textline in zone.tab

Parameters
infoStringthe textline from zone.tab

Definition at line 50 of file timezone.cxx.

SGTimeZone::SGTimeZone ( const SGTimeZone other)

The copy constructor

Parameters
otherthe source object

Definition at line 124 of file timezone.cxx.

Member Function Documentation

const SGVec3d& SGTimeZone::cartCenterpoint ( ) const
inline

Definition at line 81 of file timezone.h.

const char* SGTimeZone::getDescription ( )
inline

Return the descriptor string

Returns
descriptor string (char array)

Definition at line 79 of file timezone.h.

Referenced by SGTime::init(), and SGTime::updateLocal().

Member Data Documentation

SGVec3d SGTimeZone::centerpoint
private

Definition at line 48 of file timezone.h.

Referenced by cartCenterpoint(), and SGTimeZone().

std::string SGTimeZone::countryCode
private

Definition at line 49 of file timezone.h.

Referenced by SGTimeZone().

std::string SGTimeZone::descriptor
private

Definition at line 50 of file timezone.h.

Referenced by SGTimeZone().


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