#include <date.h>
Public Member Functions | |
| Date (int m=1, int d=1, int y=1998) | |
| void | gbstr (char s[]) |
| Date (int m=1, int d=1, int y=1998) | |
| void | gbstr (char s[]) |
Static Public Member Functions | |
| static string | parseGBDate (const string &str) |
| static void | setup () |
Private Member Functions | |
| int | smtoi (const char ms[]) |
| int | smtoi (const char ms[]) |
Private Attributes | |
| int | month |
| int | day |
| int | year |
Static Private Attributes | |
| static map< string, string > | monthMap = map<string,string>() |
Friends | |
| istream & | operator>> (istream &ins, Date &da) |
| ostream & | operator<< (ostream &ous, const Date &da) |
| istream & | operator>> (istream &ins, Date &da) |
| ostream & | operator<< (ostream &ous, const Date &da) |
| Date::Date | ( | int | m = 1, |
|
| int | d = 1, |
|||
| int | y = 1998 | |||
| ) |
| void Date::gbstr | ( | char | s[] | ) |
References day, getNumber(), smtoi(), and year.
Referenced by protein::creatDate(), head::loadSeqInfo(), protein::revDate(), and protein::tcDate().
| int Date::smtoi | ( | const char | ms[] | ) | [private] |
| void Date::gbstr | ( | char | s[] | ) |
| string Date::parseGBDate | ( | const string & | str | ) | [static] |
References monthMap.
| void Date::setup | ( | ) | [static] |
References monthMap.
| int Date::smtoi | ( | const char | ms[] | ) | [private] |
| ostream& operator<< | ( | ostream & | ous, | |
| const Date & | da | |||
| ) | [friend] |
| ostream& operator<< | ( | ostream & | ous, | |
| const Date & | da | |||
| ) | [friend] |
int Date::month [private] |
Referenced by Date(), operator<<(), and smtoi().
int Date::day [private] |
Referenced by Date(), gbstr(), operator<<(), and operator>>().
int Date::year [private] |
Referenced by Date(), gbstr(), operator<<(), and operator>>().
map< string, string > Date::monthMap = map<string,string>() [static, private] |
Referenced by parseGBDate(), and setup().
1.5.6