golib  0.5
goDate Class Reference

Simple date handling. More...

#include <godate.h>

Public Member Functions

 goDate (goInt16 Day, goInt16 Month, goInt16 Year)
 
goInt16 getDay () const
 
goInt16 getMonth () const
 
goInt16 getYear () const
 
void setDay (goInt16 d)
 
void setMonth (goInt16 m)
 
void setYear (goInt16 y)
 
bool operator< (const goDate &other) const
 
bool operator> (const goDate &other) const
 
bool operator<= (const goDate &other) const
 
bool operator>= (const goDate &other) const
 
bool operator== (const goDate &other) const
 
bool operator!= (const goDate &other) const
 
void operator= (const goDate &other)
 
void operator= (const char *s)
 

Protected Attributes

goInt16 day
 
goInt16 month
 
goInt16 year
 

Friends

std::ostream & operator<< (std::ostream &outstr, const goDate &d)
 

Detailed Description

Simple date handling.

Dates can be compared ( <, >, == ), copied ( = ) and written to a string.

Author
Christian Gosch

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