Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibDateTime.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 1999-2001 Bruce W. Forsberg
00003  *
00004  *   This library is free software; you can redistribute it and/or
00005  *   modify it under the terms of the GNU Lesser General Public
00006  *   License as published by the Free Software Foundation; either
00007  *   version 2.1 of the License, or any later version.
00008  *
00009  *   This library is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *   Lesser General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU Lesser General Public
00015  *   License along with this library; if not, write to the Free Software
00016  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00017  *
00018  *   Bruce Forsberg  forsberg@tns.net
00019  *
00020  */
00021 
00022 #ifndef _AFLIBDATETIME_H_
00023 #define _AFLIBDATETIME_H_
00024 
00025 #include <iostream.h>
00026 
00027 #include <string>
00028 #if __GNUC__ >= 3
00029 using std::string;
00030 #endif
00031 
00040 class aflibDateTime {
00041 
00042 public:
00043 
00044    aflibDateTime ();
00045 
00046    aflibDateTime (
00047       int  year,
00048       int  month,
00049       int  day,
00050       int  hour,
00051       int  minute,
00052       int  second);
00053 
00054    aflibDateTime (
00055       string date,
00056       string time);
00057 
00058    ~aflibDateTime();
00059 
00060    bool
00061    operator < (const aflibDateTime& date) const;
00062 
00063    bool
00064    operator <= (const aflibDateTime& date) const;
00065 
00066    bool
00067    operator == (const aflibDateTime& date) const;
00068 
00069    friend ostream&
00070    operator << (
00071       ostream& o,
00072       const aflibDateTime& date);
00073 
00074    void
00075    setYear(int year);
00076 
00077    int
00078    getYear() const;
00079 
00080    void
00081    setMonth(int month);
00082 
00083    int
00084    getMonth() const;
00085 
00086    void
00087    setDay(int day);
00088 
00089    int
00090    getDay() const;
00091 
00092    void
00093    setHour(int hour);
00094 
00095    int
00096    getHour() const;
00097 
00098    void
00099    setMinute(int minute);
00100 
00101    int
00102    getMinute() const;
00103 
00104    void
00105    setSecond(int second);
00106 
00107    int
00108    getSecond() const;
00109 
00110    void
00111    setCurrentTime();
00112 
00113 
00114 private:
00115 
00116 int  _year;
00117 int  _month;
00118 int  _day;
00119 int  _hour;
00120 int  _minute;
00121 int  _second;
00122 
00123 };
00124 
00125 
00126 #endif

Generated at Tue Aug 7 22:18:06 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001