Date Class Reference

#include <date.h>

List of all members.

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

istreamoperator>> (istream &ins, Date &da)
ostream & operator<< (ostream &ous, const Date &da)
istreamoperator>> (istream &ins, Date &da)
ostream & operator<< (ostream &ous, const Date &da)


Constructor & Destructor Documentation

Date::Date ( int  m = 1,
int  d = 1,
int  y = 1998 
)

References day, month, and year.

Date::Date ( int  m = 1,
int  d = 1,
int  y = 1998 
)


Member Function Documentation

void Date::gbstr ( char  s[]  ) 

int Date::smtoi ( const char  ms[]  )  [private]

References month, and upper().

Referenced by gbstr(), and operator>>().

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]


Friends And Related Function Documentation

istream& operator>> ( istream ins,
Date da 
) [friend]

ostream& operator<< ( ostream &  ous,
const Date da 
) [friend]

istream& operator>> ( istream ins,
Date da 
) [friend]

ostream& operator<< ( ostream &  ous,
const Date da 
) [friend]


Member Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on Wed Aug 10 11:57:09 2011 for Softwares from Orpara by  doxygen 1.5.6