/****************************************************************** * * * Nest version 2 - 3D Wasp Nest Simulator * * Copyright (C) 1997 Sylvain GUERIN * * LIASC, ENST Bretagne & Santa Fe Institute * * * ****************************************************************** E-mail: Sylvain.Guerin@enst-bretagne.fr or: Sylvain Guerin 13 rue des Monts Lorgeaux, 51460 L'EPINE, FRANCE ****************************************************************** This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ****************************************************************** Name : date.h Component : date Fonctionality : contains specifications for object Date ******************************************************************/ #ifndef __date_H #define __date_H #include class Date { public: Date (); ~Date (); void set (); void setWithDate (Date aDate); char* getDate (); char* getTime (); tm* get (); int compare (Date aDate); /* return 1 if aDate < currentInstance, -1 when > and 0 when == */ void addMin (int minVar); void addSec (int secVar); int year; int month; int day; int hour; int min; int sec; protected: time_t currentTimeT; tm* currentTime; char dateC[256]; char timeC[256]; }; #endif