timezone.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*- *****************************************************
00002  * timezone.h
00003  * Written by Durk Talsma. Started July 1999.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  *
00019  **************************************************************************/
00020 
00027 #ifndef _TIMEZONE_H_
00028 #define _TIMEZONE_H_
00029 
00030 #include <stdio.h>
00031 #include <string>
00032 
00033 #include <simgear/timing/geocoord.h>
00034 
00042 class SGTimeZone : public SGGeoCoord
00043 {
00044 
00045 private:
00046 
00047   string countryCode;
00048   string descriptor;
00049 
00050 public:
00051 
00055     SGTimeZone() : SGGeoCoord()
00056     {
00057         countryCode.erase(); 
00058         descriptor.erase();
00059     };
00060 
00069     SGTimeZone(float la, float lo, char* cc, char* desc);
00070 
00075     SGTimeZone(const char *infoString);
00076 
00081     SGTimeZone(const SGTimeZone &other);
00082 
00086     virtual ~SGTimeZone() { };
00087   
00092     virtual const char * getDescription() { return descriptor.c_str(); };
00093 };
00094 
00100 class SGTimeZoneContainer : public SGGeoCoordContainer
00101 {
00102  public:
00103   SGTimeZoneContainer(const char *filename);
00104   virtual ~SGTimeZoneContainer();
00105 };
00106 
00107 
00108 
00109 #endif // _TIMEZONE_H_

Generated on Mon Dec 17 09:30:56 2007 for SimGear by  doxygen 1.5.1