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

CCalendar Class Reference

Linked List of CDate items creating a list in chronological order of scheduled events. More...

#include <CDataStructures.h>

Inheritance diagram for CCalendar::

CList List of all members.

Public Methods

 CCalendar (void)
 ~CCalendar (void)
CDategetItem (void)
 Returns the internal pointer. More...

CDategetItem (int number)
 Returns the item that is in position number, where the head is 1. More...

bool gotoDate (int day, int month, int year)
 Sets m_current to earliest CDate occuring on specified date. More...

bool nextEventYear (void)
 Gets first event in the next year or after than current. More...

bool nextEventMonth (void)
bool nextEventDay (void)
bool nextEventOnCurrentDay (void)
 Sets m_current ptr to the next CDate occuring on the same day. More...

bool prevEventYear (void)
 Gets the earliest event in the first previous year before current. More...

bool prevEventMonth (void)
bool prevEventDay (void)
bool prevEventOnCurrentDay (void)
 Sets m_current ptr to the previous CDate occuring on the same day. More...

void insertItem (CDate *appt)
 Use only this for all CDate inserts into the Calendar. More...

void inputData (string inputdata)
string outputData (void)

Detailed Description

Linked List of CDate items creating a list in chronological order of scheduled events.


Constructor & Destructor Documentation

CCalendar::CCalendar void   
 

CCalendar::~CCalendar void   
 


Member Function Documentation

CDate * CCalendar::getItem int    number
 

Returns the item that is in position number, where the head is 1.

Returns NULL if the number is out of range for the list.

Reimplemented from CList.

CDate * CCalendar::getItem void   
 

Returns the internal pointer.

Reimplemented from CList.

bool CCalendar::gotoDate int    day,
int    month,
int    year
 

Sets m_current to earliest CDate occuring on specified date.

Returns true if such a date exists in CCalendar Returns false if no such a date exists in CCalendar

void CCalendar::inputData string    inputdata
 

void CCalendar::insertItem CDate   appt
 

Use only this for all CDate inserts into the Calendar.

Will not allow overlapping events except for 1) all day events 2) an event 1 may have same endtime as event 2's start time 3) if an event has same start time and end time, it may share that time with the starting or ending time of other events but cannot lie between the start and end time of an event Returns true on successful entry Returns false if date conflicts with previously entered dates

bool CCalendar::nextEventDay void   
 

bool CCalendar::nextEventMonth void   
 

bool CCalendar::nextEventOnCurrentDay void   
 

Sets m_current ptr to the next CDate occuring on the same day.

Returns true if successful and sets m_current Returns false if there are no other CDate items on m_current's date which are after or the same time as m_current

bool CCalendar::nextEventYear void   
 

Gets first event in the next year or after than current.

Goes to the first next event in the CCalendar that is beyond the the year of the CDate that m_current is pointing to.

Returns true if there is such a date and sets internal current ptr to it. Else returns false and leaves internal current pointer as is.

nextEventMonth() and nextEventDay work similarly

string CCalendar::outputData void   
 

bool CCalendar::prevEventDay void   
 

bool CCalendar::prevEventMonth void   
 

bool CCalendar::prevEventOnCurrentDay void   
 

Sets m_current ptr to the previous CDate occuring on the same day.

Returns true if successful and sets m_current Returns false if there are no other CDate items on m_current's date which are before or the same time as m_current

bool CCalendar::prevEventYear void   
 

Gets the earliest event in the first previous year before current.

Goes to the next event in the CCalendar that is before the the year of the CDate that m_current is pointing to. Though if there are multiple dates before the current one and they are of the same year, it goes to the earliest occuring of these.

Returns true if there is such a date and sets internal current ptr to it. Else returns false and leaves internal current pointer as is.

nextEventMonth() and nextEventDay work similarly


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:52 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001