1 /* -*- Mode: C++ -*- *****************************************************
3 * Written by Durk Talsma. Started July 1999.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 **************************************************************************/
21 /*************************************************************************
23 * Timezone is derived from geocoord, and stores the timezone centerpoint,
24 * as well as the countrycode and the timezone descriptor. The latter is
25 * used in order to get the local time.
27 ************************************************************************/
35 class Timezone : public GeoCoord
48 Timezone(float la, float lo, char* cc, char* desc);
49 Timezone(const char *infoString);
50 Timezone(const Timezone &other);
51 virtual ~Timezone() { delete [] countryCode; delete [] descriptor; };
54 virtual void print() { printf("%s", descriptor);};
55 virtual char * getDescription() { return descriptor; };
58 /************************************************************************
59 * Timezone container is derived from GeoCoordContainer, and has some
60 * added functionality.
61 ************************************************************************/
63 class TimezoneContainer : public GeoCoordContainer
66 TimezoneContainer(const char *filename);
67 virtual ~TimezoneContainer();
72 #endif // _TIMEZONE_H_