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.

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

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

 ~aflibDateTime ()
 Destructor.

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.

int getYear () const
 Gets the year.

void setMonth (int month)
 Sets the month.

int getMonth () const
 Gets the month.

void setDay (int day)
 Sets the day.

int getDay () const
 Gets the day.

void setHour (int hour)
 Sets the hour.

int getHour () const
 Gets the hour.

void setMinute (int minute)
 Sets the minute.

int getMinute () const
 Gets the minute.

void setSecond (int second)
 Sets the second.

int getSecond () const
 Gets the second.

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


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 at Tue Aug 7 22:18:07 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001