OSXSDTimeClass Class Reference
Inheritance diagram for OSXSDTimeClass:
Public Member Functions | |
OSXSDTimeClass () | |
OSXSDTimeClass(): This is a default constructor, sets the date and time fields to zero. | |
OSXSDTimeClass (const OSUTF8CHAR *dtString) | |
OSXSDTimeClass(string): This is a parameterized constructor, parses string and sets the date and time fields. | |
OSXSDTimeClass (OSINT32 year, OSUINT8 mon, OSUINT8 day, OSUINT8 hour, OSUINT8 min, OSREAL sec, OSBOOL tz_flag, OSINT32 tzo) | |
OSXSDDateTimeClass(param1,param2,. | |
OSXSDTimeClass (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. | |
OSXSDTimeClass (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 time 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 298 of file rtxCppDateTime.h.
Constructor & Destructor Documentation
OSXSDTimeClass::OSXSDTimeClass | ( | 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 326 of file rtxCppDateTime.h.
OSXSDTimeClass::OSXSDTimeClass | ( | 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 337 of file rtxCppDateTime.h.
OSXSDTimeClass::OSXSDTimeClass | ( | 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 346 of file rtxCppDateTime.h.
Member Function Documentation
OSRTBaseType* OSXSDTimeClass::clone | ( | ) | const [inline, virtual] |
Clone method.
Creates a copied instance and returns pointer to OSRTBaseType.
Reimplemented from OSXSDDateTimeClass.
Definition at line 353 of file rtxCppDateTime.h.
virtual int OSXSDTimeClass::parseString | ( | const OSUTF8CHAR * | dtString | ) | [virtual] |
parseString: This method parses the time 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 OSXSDTimeClass::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* OSXSDTimeClass::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: