date.h

Go to the documentation of this file.
00001 #ifndef DATE_H
00002 #define DATE_H
00003 
00004 #include <stdlib.h>
00005 #include <iostream.h>
00006 
00007 class Date
00008 {
00009         public:
00010                 Date(int m = 1, int d = 1, int y = 1998);
00011                 void gbstr(char s[]);
00012                 friend istream &operator>>(istream &ins, Date &da); 
00013                 //recognize the GenBank format only: 28-MAR-1994
00014                 friend ostream &operator<<(ostream &ous, const Date &da);
00015                 //output to the ACEDB format (DateType) 1963-07-11
00016         private:
00017                 int smtoi(const char ms[]); //converts string month to int
00018                 int month;
00019                 int day;
00020                 int year;
00021 };
00022 
00023 
00024 #endif
00025 

Generated on Wed Aug 10 11:56:50 2011 for Softwares from Orpara by  doxygen 1.5.6