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-2000 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@adnc.com
00019  *
00020  */
00021 
00022 #ifndef _AFLIBDATETIME_H_
00023 #define _AFLIBDATETIME_H_
00024 
00025 #include <string>
00026 
00027 
00036 class aflibDateTime {
00037 
00038 public:
00039 
00040    aflibDateTime ();
00041 
00042    aflibDateTime (
00043       int  year,
00044       int  month,
00045       int  day,
00046       int  hour,
00047       int  minute,
00048       int  second);
00049 
00050    aflibDateTime (
00051       string date,
00052       string time);
00053 
00054    ~aflibDateTime();
00055 
00056    bool
00057    operator < (const aflibDateTime& date) const;
00058 
00059    friend ostream&
00060    operator << (
00061       ostream& o,
00062       const aflibDateTime& date);
00063 
00064    void
00065    setYear(int year);
00066 
00067    int
00068    getYear() const;
00069 
00070    void
00071    setMonth(int month);
00072 
00073    int
00074    getMonth() const;
00075 
00076    void
00077    setDay(int day);
00078 
00079    int
00080    getDay() const;
00081 
00082    void
00083    setHour(int hour);
00084 
00085    int
00086    getHour() const;
00087 
00088    void
00089    setMinute(int minute);
00090 
00091    int
00092    getMinute() const;
00093 
00094    void
00095    setSecond(int second);
00096 
00097    int
00098    getSecond() const;
00099 
00100    void
00101    setCurrentTime();
00102 
00103 
00104 private:
00105 
00106 int  _year;
00107 int  _month;
00108 int  _day;
00109 int  _hour;
00110 int  _minute;
00111 int  _second;
00112 
00113 };
00114 
00115 
00116 #endif

Generated at Sun May 13 16:18:53 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001