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-2004 by 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    virtual int parseString (const OSUTF8CHAR* dtString);
00091  
00097    void print (const char* name);
00098 
00107    int setCurrent ();
00108 
00114    void setValue (const OSUTF8CHAR* utf8str);
00115 
00121    void setValue (const OSXSDDateTime& dt);
00122 
00130    const OSUTF8CHAR* toString ();
00131 
00142    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00143 } ;
00144 
00145 class EXTERNRTX OSXSDDateClass : public OSXSDDateTimeClass {
00146  public:
00151    OSXSDDateClass () {}
00152 
00158    OSXSDDateClass (const OSUTF8CHAR* dtString);
00159    
00173    OSXSDDateClass (OSINT32 year, OSUINT8 mon,
00174                    OSUINT8 day, OSUINT8 hour, OSUINT8 min,
00175                    OSREAL sec, OSBOOL tz_flag,OSINT32 tzo):
00176       OSXSDDateTimeClass (year, mon, day, hour, min, sec, tz_flag, tzo) {}
00177 
00184    OSXSDDateClass (const OSXSDDateTimeClass& dt) :
00185       OSXSDDateTimeClass (dt) {}
00186 
00193    OSXSDDateClass (const OSXSDDateTime& dt) :
00194       OSXSDDateTimeClass (dt) {}
00195 
00205    virtual int parseString (const OSUTF8CHAR* dtString);
00206 
00212    void print (const char* name);
00213 
00224    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00225 } ;
00226 
00227 class EXTERNRTX OSXSDTimeClass : public OSXSDDateTimeClass {
00228  public:
00233    OSXSDTimeClass () {}
00234 
00240    OSXSDTimeClass (const OSUTF8CHAR* dtString);
00241    
00255    OSXSDTimeClass (OSINT32 year, OSUINT8 mon,
00256                    OSUINT8 day, OSUINT8 hour, OSUINT8 min,
00257                    OSREAL sec, OSBOOL tz_flag,OSINT32 tzo):
00258       OSXSDDateTimeClass (year, mon, day, hour, min, sec, tz_flag, tzo) {}
00259 
00266    OSXSDTimeClass (const OSXSDDateTimeClass& dt) :
00267       OSXSDDateTimeClass (dt) {}
00268 
00275    OSXSDTimeClass (const OSXSDDateTime& dt) :
00276       OSXSDDateTimeClass (dt) {}
00277 
00287    virtual int parseString (const OSUTF8CHAR* dtString);
00288 
00294    void print (const char* name);
00295 
00306    virtual const OSUTF8CHAR* toString (OSUTF8CHAR* buffer, size_t bufsize);
00307 } ;
00308 
00309 #endif

This file was last modified on 1 Jun 2004.
XBinder, Version 1.0.0