1.1.0 Removed virtual from function definitions
1.1.1 Added object description
1.1.2 Improved const correctness
Definition at line 33 of file CTime.hpp.
Exponent::Host::CTime::CTime | ( | ) |
Construction -> sets to current time
Exponent::Host::CTime::CTime | ( | FILETIME & | fileTime | ) |
Construction from a time
fileTime | Window file time |
Exponent::Host::CTime::CTime | ( | DateTimeRec & | time | ) |
Construction from a time
time | Mac file time |
Exponent::Host::CTime::CTime | ( | const CTime & | time | ) |
Copy construction
time | The time to copy |
virtual Exponent::Host::CTime::~CTime | ( | ) | [virtual] |
Destructor
unsigned short Exponent::Host::CTime::getDay | ( | ) | const [inline] |
unsigned short Exponent::Host::CTime::getDayOfWeek | ( | ) | const [inline] |
Get hte day of the week
unsigned | short The day of the week |
Definition at line 138 of file CTime.hpp.
References m_dayOfWeek.
CString Exponent::Host::CTime::getDayYearString | ( | const bool | stringFormat = true |
) | const |
Get the day and year string eg - either 12 SEptember 2004 or 12/09/04 if stringFormat = false
stringFormat | If true string is format Date Month Year as strings. If false is formated as dd/mm/yy |
CString | The day year string. Up to you to delete string returned |
DateTimeRec* Exponent::Host::CTime::getFileTime | ( | ) |
Get the time as a macos datetimerec MAC ONLY
DateTimeRect* | The date as a DatTimeRec for mac - you are responsible for pointer deletion |
FILETIME* Exponent::Host::CTime::getFileTime | ( | ) |
Get the time as a filetime structure WIN32 ONLY
FILETIME | The date as a FILETIMNE for win - you are responsible for pointer deletion |
unsigned short Exponent::Host::CTime::getHour | ( | ) | const [inline] |
unsigned short Exponent::Host::CTime::getMilliseconds | ( | ) | const [inline] |
Get the milliseconds
unsigned | short The milliseconds |
Definition at line 168 of file CTime.hpp.
References m_milliseconds.
unsigned short Exponent::Host::CTime::getMinutes | ( | ) | const [inline] |
unsigned short Exponent::Host::CTime::getMonth | ( | ) | const [inline] |
virtual void Exponent::Host::CTime::getObjectDescription | ( | char * | string, | |
const long | size | |||
) | const [virtual] |
Get a description of the object
string | On return is filled with the description | |
size | The size of the stirng |
unsigned short Exponent::Host::CTime::getSeconds | ( | ) | const [inline] |
CString Exponent::Host::CTime::getTimeOnly | ( | ) | const |
Get the time as a string eg - hh:mm:sec:msec
CString | The time string, up to you to delete string returned |
unsigned short Exponent::Host::CTime::getYear | ( | ) | const [inline] |
Assignment opertor
time | The time to copy |
CTime& | A reference to this |
void Exponent::Host::CTime::setDay | ( | const unsigned short | day | ) | [inline] |
void Exponent::Host::CTime::setDayOfWeek | ( | const unsigned short | dayOfWeek | ) | [inline] |
Set the day of the week
dayOfWeek | The day of the week |
Definition at line 188 of file CTime.hpp.
References m_dayOfWeek.
void Exponent::Host::CTime::setHour | ( | const unsigned short | hour | ) | [inline] |
void Exponent::Host::CTime::setMilliseconds | ( | const unsigned short | milliseconds | ) | [inline] |
Set the milliseconds
milliseconds | The milliseconds |
Definition at line 218 of file CTime.hpp.
References m_milliseconds.
void Exponent::Host::CTime::setMinutes | ( | const unsigned short | minutes | ) | [inline] |
void Exponent::Host::CTime::setMonth | ( | const unsigned short | month | ) | [inline] |
void Exponent::Host::CTime::setSeconds | ( | const unsigned short | seconds | ) | [inline] |
void Exponent::Host::CTime::setTime | ( | SYSTEMTIME & | time | ) | [protected] |
Set the time
time | The windows system time |
void Exponent::Host::CTime::setTime | ( | DateTimeRec & | time | ) |
Construction from a time
time | Mac file time |
void Exponent::Host::CTime::setTime | ( | FILETIME & | fileTime | ) |
Set the time from a windows filetime structure
fileTime | The window file time |
void Exponent::Host::CTime::setToCurrentTime | ( | ) |
Set to the current time when called
void Exponent::Host::CTime::setYear | ( | const unsigned short | year | ) | [inline] |
const char* Exponent::Host::CTime::CTIME_DAY_OF_THE_WEEK[] [static] |
const char* Exponent::Host::CTime::CTIME_MONTH_OF_THE_YEAR[] [static] |
unsigned short Exponent::Host::CTime::m_day [protected] |
unsigned short Exponent::Host::CTime::m_dayOfWeek [protected] |
The day of the week
Definition at line 284 of file CTime.hpp.
Referenced by getDayOfWeek(), and setDayOfWeek().
unsigned short Exponent::Host::CTime::m_hour [protected] |
unsigned short Exponent::Host::CTime::m_milliseconds [protected] |
The milliseconds
Definition at line 289 of file CTime.hpp.
Referenced by getMilliseconds(), and setMilliseconds().
unsigned short Exponent::Host::CTime::m_minutes [protected] |
unsigned short Exponent::Host::CTime::m_month [protected] |
unsigned short Exponent::Host::CTime::m_seconds [protected] |
unsigned short Exponent::Host::CTime::m_year [protected] |