head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.41; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.59; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.05; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.22.02; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# timezone.h

    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 Library General Public
    00016  * License along with this library; if not, write to the
    00017  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018  * Boston, MA  02111-1307, USA.
    00019  *
    00020  **************************************************************************/
    00021
    00022 /*************************************************************************
    00023  *
    00024  * Timezone is derived from geocoord, and stores the timezone centerpoint,
    00025  * as well as the countrycode and the timezone descriptor. The latter is
    00026  * used in order to get the local time.
    00027  *
    00028  ************************************************************************/
    00029
    00030 #ifndef _TIMEZONE_H_
    00031 #define _TIMEZONE_H_
    00032
    00033 #include <stdio.h>
    00034
    00035 #include <simgear/timing/geocoord.h>
    00036
    00037 class Timezone : public GeoCoord
    00038 {
    00039 private:
    00040   char* countryCode;
    00041   char* descriptor;
    00042
    00043 public:
    00044   Timezone() :
    00045     GeoCoord()
    00046     {
    00047       countryCode = 0;
    00048       descriptor = 0;
    00049     };
    00050   Timezone(float la, float lo, char* cc, char* desc);
    00051   Timezone(const char *infoString);
    00052   Timezone(const Timezone &other);
    00053   virtual ~Timezone() { delete [] countryCode; delete [] descriptor; };
    00054
    00055
    00056   virtual void print() { printf("%s", descriptor);};
    00057   virtual char * getDescription() { return descriptor; };
    00058 };
    00059
    00060 /************************************************************************
    00061  * Timezone container is derived from GeoCoordContainer, and has some
    00062  * added functionality.
    00063  ************************************************************************/
    00064
    00065 class TimezoneContainer : public GeoCoordContainer
    00066 {
    00067  public:
    00068   TimezoneContainer(const char *filename);
    00069   virtual ~TimezoneContainer();
    00070 };
    00071
    00072
    00073
    00074 #endif // _TIMEZONE_H_

@ 1.3 log @Oops, try again. @ text @d83 1 a83 1