Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtxCppDateTime.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2003-2006 Objective Systems, Inc.
00003  *
00004  * This software is furnished under a license and may be used and copied
00005  * only in accordance with the terms of such license and with the
00006  * inclusion of the above copyright notice. This software or any other
00007  * copies thereof may not be provided or otherwise made available to any
00008  * other person. No title to and ownership of the software is hereby
00009  * transferred.
00010  *
00011  * The information in this software is subject to change without notice
00012  * and should not be construed as a commitment by Objective Systems, Inc.
00013  *
00014  * PROPRIETARY NOTICE
00015  *
00016  * This software is an unpublished work subject to a confidentiality agreement
00017  * and is protected by copyright and trade secret law.  Unauthorized copying,
00018  * redistribution or other use of this work is prohibited.
00019  *
00020  * The above notice of copyright on this source code product does not indicate
00021  * any actual or intended publication of such source code.
00022  *
00023  *****************************************************************************/
00028 #ifndef _RTXCPPDATETIME_H_
00029 #define _RTXCPPDATETIME_H_
00030 
00031 #include "rtxsrc/rtxCommon.h"
00032 #include "rtxsrc/rtxCppBaseType.h"
00033 
00034 class EXTERNRTX OSXSDDateTimeClass : public OSXSDDateTime, public OSBaseType {
00035  public:
00040    OSXSDDateTimeClass ();
00041    
00047    OSXSDDateTimeClass (const OSUTF8CHAR* dtString);
00048    
00062    OSXSDDateTimeClass (OSINT32 year_, OSUINT8 mon_,
00063                         OSUINT8 day_, OSUINT8 hour_, OSUINT8 min_,
00064                         OSREAL sec_, OSBOOL tz_flag_, OSINT32 tzo_);
00071    OSXSDDateTimeClass (const OSXSDDateTimeClass& dt);
00072 
00079    OSXSDDateTimeClass (const OSXSDDateTime& dt);
00080 
00090    int getTime (time_t& timeMs);
00091 
00101    virtual int parseString (const OSUTF8CHAR* dtString);
00102  
00108    void print (const char* name);
00109 
00118    int setCurrent ();
00119 
00128    int setCurrentTz ();
00129 
00138    int setDateTime (struct tm* time);
00139 
00148    int setLocalTime (time_t timeMs);
00149 
00161    int setUtcTime (time_t timeMs);
00162 
00168    void setValue (const OSUTF8CHAR* utf8str);
00169 
00175    void setValue (const OSXSDDateTime& dt);
00176 
00184    const OSUTF8CHAR* toString ();
00185 
00194    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00195 } ;
00196 
00197 class EXTERNRTX OSXSDDateClass : public OSXSDDateTimeClass {
00198  public:
00203    OSXSDDateClass () {}
00204 
00210    OSXSDDateClass (const OSUTF8CHAR* dtString);
00211    
00225    OSXSDDateClass (OSINT32 year, OSUINT8 mon,
00226                    OSUINT8 day, OSUINT8 hour, OSUINT8 min,
00227                    OSREAL sec, OSBOOL tz_flag,OSINT32 tzo):
00228       OSXSDDateTimeClass (year, mon, day, hour, min, sec, tz_flag, tzo) {}
00229 
00236    OSXSDDateClass (const OSXSDDateTimeClass& dt) :
00237       OSXSDDateTimeClass (dt) {}
00238 
00245    OSXSDDateClass (const OSXSDDateTime& dt) :
00246       OSXSDDateTimeClass (dt) {}
00247 
00257    virtual int parseString (const OSUTF8CHAR* dtString);
00258 
00264    void print (const char* name);
00265 
00274    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00275 } ;
00276 
00277 class EXTERNRTX OSXSDTimeClass : public OSXSDDateTimeClass {
00278  public:
00283    OSXSDTimeClass () {}
00284 
00290    OSXSDTimeClass (const OSUTF8CHAR* dtString);
00291    
00305    OSXSDTimeClass (OSINT32 year, OSUINT8 mon,
00306                    OSUINT8 day, OSUINT8 hour, OSUINT8 min,
00307                    OSREAL sec, OSBOOL tz_flag,OSINT32 tzo):
00308       OSXSDDateTimeClass (year, mon, day, hour, min, sec, tz_flag, tzo) {}
00309 
00316    OSXSDTimeClass (const OSXSDDateTimeClass& dt) :
00317       OSXSDDateTimeClass (dt) {}
00318 
00325    OSXSDTimeClass (const OSXSDDateTime& dt) :
00326       OSXSDDateTimeClass (dt) {}
00327 
00337    virtual int parseString (const OSUTF8CHAR* dtString);
00338 
00344    void print (const char* name);
00345 
00354    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00355 } ;
00356 
00357 #endif

This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9