OSXSDDateClass Class Reference
Inheritance diagram for OSXSDDateClass:
![](classOSXSDDateClass.png)
Public Member Functions | |
OSXSDDateClass () | |
OSXSDDateClass(): This is a default constructor, sets the date and time fields to zero. | |
OSXSDDateClass (const OSUTF8CHAR *dtString) | |
OSXSDDateClass(string): This is a parameterized constructor, parses string and sets the date and time fields. | |
OSXSDDateClass (OSINT32 year, OSUINT8 mon, OSUINT8 day, OSUINT8 hour, OSUINT8 min, OSREAL sec, OSBOOL tz_flag, OSINT32 tzo) | |
OSXSDDateTimeClass(param1,param2,. | |
OSXSDDateClass (const OSXSDDateTimeClass &dt) | |
OSXSDDateTimeClass(const OSXSDDateTimeClass& dt): This is a copy constructor, sets the date and time fields to that of equal to supplied OSXSDDateTimeClass type object. | |
OSXSDDateClass (const OSXSDDateTime &dt) | |
OSXSDDateTimeClass(const OSXSDDateTime& dt): This is a copy constructor, sets the date and time fields to that of equal to supplied OSXSDDateTimeClass type object. | |
OSRTBaseType * | clone () const |
Clone method. | |
virtual int | parseString (const OSUTF8CHAR *dtString) |
parseString: This method parses the date string and sets the date and time value | |
void | print (const char *name) |
This method prints the datetime value to standard output. | |
virtual const OSUTF8CHAR * | toString (OSUTF8CHAR *buffer, size_t bufsize) |
This method sets the date and time fields to the values of current date and time. |
Detailed Description
Definition at line 212 of file rtxCppDateTime.h.
Constructor & Destructor Documentation
OSXSDDateClass::OSXSDDateClass | ( | OSINT32 | year, | |
OSUINT8 | mon, | |||
OSUINT8 | day, | |||
OSUINT8 | hour, | |||
OSUINT8 | min, | |||
OSREAL | sec, | |||
OSBOOL | tz_flag, | |||
OSINT32 | tzo | |||
) | [inline] |
OSXSDDateTimeClass(param1,param2,.
.): This is a parameterized constructor, sets the date and time elements with the supplied parameter values .
- Parameters:
-
year OSINT32 sets year field mon OSUINT8 sets month field day OSUINT8 sets day field hour OSUINT8 sets hour field min OSUINT8 sets minute filed sec OSREAL sets second field tz_flag OSBOOL sets timezone flag tzo OSINT32 sets timezone value
Definition at line 240 of file rtxCppDateTime.h.
OSXSDDateClass::OSXSDDateClass | ( | const OSXSDDateTimeClass & | dt | ) | [inline] |
OSXSDDateTimeClass(const OSXSDDateTimeClass& dt): This is a copy constructor, sets the date and time fields to that of equal to supplied OSXSDDateTimeClass type object.
- Parameters:
-
dt OSXSDDateTimeClass type object.
Definition at line 251 of file rtxCppDateTime.h.
OSXSDDateClass::OSXSDDateClass | ( | const OSXSDDateTime & | dt | ) | [inline] |
OSXSDDateTimeClass(const OSXSDDateTime& dt): This is a copy constructor, sets the date and time fields to that of equal to supplied OSXSDDateTimeClass type object.
- Parameters:
-
dt OSXSDDateTimeClass type object.
Definition at line 260 of file rtxCppDateTime.h.
Member Function Documentation
OSRTBaseType* OSXSDDateClass::clone | ( | ) | const [inline, virtual] |
Clone method.
Creates a copied instance and returns pointer to OSRTBaseType.
Reimplemented from OSXSDDateTimeClass.
Definition at line 267 of file rtxCppDateTime.h.
virtual int OSXSDDateClass::parseString | ( | const OSUTF8CHAR * | dtString | ) | [virtual] |
parseString: This method parses the date string and sets the date and time value
- Parameters:
-
dtString const OSUTF8CHAR* - Date and time string
- Returns:
- Completion status of operation:
- 0(RT_OK) = success,
- negative return value is error
Reimplemented from OSXSDDateTimeClass.
void OSXSDDateClass::print | ( | const char * | name | ) |
This method prints the datetime value to standard output.
- Parameters:
-
name - Name of generated string variable.
Reimplemented from OSXSDDateTimeClass.
virtual const OSUTF8CHAR* OSXSDDateClass::toString | ( | OSUTF8CHAR * | buffer, | |
size_t | bufsize | |||
) | [virtual] |
This method sets the date and time fields to the values of current date and time.
- Parameters:
-
buffer OSUTF8CHAR* - pointer to Date and time string bufsize size_t specifies buffer size
- Returns:
- const OSUTF8CHAR* returns the datetime string
Reimplemented from OSXSDDateTimeClass.
The documentation for this class was generated from the following file: