Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibDateTime Class Reference

Date Time class. More...

#include <aflibDateTime.h>

List of all members.

Public Methods

 aflibDateTime ()
 Constructor with no parameters. More...

 aflibDateTime (int year, int month, int day, int hour, int minute, int second)
 Constructor with parameters as integer values. More...

 aflibDateTime (string date, string time)
 Constructor with parameters as strings. More...

 ~aflibDateTime ()
 Destructor. More...

bool operator< (const aflibDateTime &date) const
 Comparision operator. More...

bool operator<= (const aflibDateTime &date) const
bool operator== (const aflibDateTime &date) const
void setYear (int year)
 Sets the year. More...

int getYear () const
 Gets the year. More...

void setMonth (int month)
 Sets the month. More...

int getMonth () const
 Gets the month. More...

void setDay (int day)
 Sets the day. More...

int getDay () const
 Gets the day. More...

void setHour (int hour)
 Sets the hour. More...

int getHour () const
 Gets the hour. More...

void setMinute (int minute)
 Sets the minute. More...

int getMinute () const
 Gets the minute. More...

void setSecond (int second)
 Sets the second. More...

int getSecond () const
 Gets the second. More...

void setCurrentTime ()
 Sets the date and time to the current date and time. More...


Friends

ostream & operator<< (ostream &o, const aflibDateTime &date)
 Outputs data and time to a stream. More...


Detailed Description

Date Time class.

This class simply holds a date and time. It can be used by other classes such as the aflibAudioRecorder class that requires a date and time. It provides for storing a date and time, printing a date and time, and comparing two dates and times.


Constructor & Destructor Documentation

aflibDateTime::aflibDateTime  
 

Constructor with no parameters.

aflibDateTime::aflibDateTime int    year,
int    month,
int    day,
int    hour,
int    minute,
int    second
 

Constructor with parameters as integer values.

aflibDateTime::aflibDateTime string    date,
string    time
 

Constructor with parameters as strings.

This constructor takes a date and a time as a string. The date must be in the format MM/DD/YYYY. The time must be in the format HH:MM:SS.

aflibDateTime::~aflibDateTime  
 

Destructor.


Member Function Documentation

int aflibDateTime::getDay   const
 

Gets the day.

int aflibDateTime::getHour   const
 

Gets the hour.

int aflibDateTime::getMinute   const
 

Gets the minute.

int aflibDateTime::getMonth   const
 

Gets the month.

int aflibDateTime::getSecond   const
 

Gets the second.

int aflibDateTime::getYear   const
 

Gets the year.

bool aflibDateTime::operator< const aflibDateTime &    date const
 

Comparision operator.

This operator will determine if one date and time is less than another date and time.

bool aflibDateTime::operator<= const aflibDateTime &    date const
 

bool aflibDateTime::operator== const aflibDateTime &    date const
 

void aflibDateTime::setCurrentTime  
 

Sets the date and time to the current date and time.

void aflibDateTime::setDay int    day
 

Sets the day.

void aflibDateTime::setHour int    hour
 

Sets the hour.

void aflibDateTime::setMinute int    minute
 

Sets the minute.

void aflibDateTime::setMonth int    month
 

Sets the month.

void aflibDateTime::setSecond int    second
 

Sets the second.

void aflibDateTime::setYear int    year
 

Sets the year.


Friends And Related Function Documentation

ostream& operator<< ostream &    o,
const aflibDateTime &    date
[friend]
 

Outputs data and time to a stream.

This will output the date and time to a stream in the format MM/DD/YYYY and HH:MM:SS.


The documentation for this class was generated from the following files:
Generated on Wed May 8 20:51:11 2002 for Open Source Audio Library Project by doxygen1.2.15