00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __ASN1CGENTIME_H__
00026 #define __ASN1CGENTIME_H__
00027
00028 #include "rtsrc/ASN1CTime.h"
00029
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #ifndef _NO_UTILS_CLASSES
00055
00067 class EXTRTCLASS ASN1CGeneralizedTime : public ASN1CTime {
00068 protected:
00069 ASN1TGeneralizedTime timeObj;
00070
00071 virtual ASN1TTime& getTimeObj () { return timeObj; }
00072 virtual const ASN1TTime& getTimeObj () const { return timeObj; }
00073
00074 EXTRTMETHOD ASN1CGeneralizedTime(char*& buf, int bufSize, OSBOOL useDerRules = FALSE);
00075
00076 EXTRTMETHOD ASN1CGeneralizedTime(ASN1GeneralizedTime& buf,
00077 OSBOOL useDerRules = FALSE);
00078 public:
00079
00091 EXTRTMETHOD ASN1CGeneralizedTime(OSRTMessageBufferIF& msgBuf, char*& buf, int bufSize,
00092 OSBOOL useDerRules = FALSE);
00093
00106 EXTRTMETHOD ASN1CGeneralizedTime(OSRTMessageBufferIF& msgBuf, ASN1GeneralizedTime& buf,
00107 OSBOOL useDerRules = FALSE);
00108
00122 EXTRTMETHOD ASN1CGeneralizedTime(OSRTContext& ctxt, char*& buf, int bufSize,
00123 OSBOOL useDerRules = FALSE);
00124
00138 EXTRTMETHOD ASN1CGeneralizedTime(OSRTContext& ctxt, ASN1GeneralizedTime& buf,
00139 OSBOOL useDerRules = FALSE);
00140
00141
00142
00149 ASN1CGeneralizedTime (const ASN1CGeneralizedTime& original) :
00150 ASN1CTime (original) {}
00151
00162 EXTRTMETHOD int getCentury();
00163
00173 EXTRTMETHOD int setCentury(short century);
00174
00191 EXTRTMETHOD int setTime(time_t time, OSBOOL diffTime);
00192
00193 const ASN1CGeneralizedTime& operator = (const ASN1CGeneralizedTime& tm) {
00194 return (const ASN1CGeneralizedTime&) ASN1CTime::operator = (tm);
00195 }
00196 protected:
00203 EXTRTMETHOD int compileString();
00204 } ;
00205 #else
00206 typedef class _ASN1CGeneralizedTime : public _ASN1CTime {
00207 protected:
00208 _ASN1CGeneralizedTime(char*& buf, int bufSize, OSBOOL useDerRules) {}
00209 _ASN1CGeneralizedTime(ASN1VisibleString& buf, OSBOOL useDerRules) {}
00210 public:
00211 _ASN1CGeneralizedTime (OSRTMessageBufferIF& msgBuf, char*& buf, int sz,
00212 OSBOOL useDerRules = FALSE) :
00213 _ASN1CTime (msgBuf, buf, sz, useDerRules) {}
00214 _ASN1CGeneralizedTime (OSRTMessageBufferIF& msgBuf, ASN1VisibleString& buf,
00215 OSBOOL useDerRules = FALSE) :
00216 _ASN1CTime (msgBuf, buf, useDerRules) {}
00217 _ASN1CGeneralizedTime(OSRTContext& ctxt, char*& buf, int bufSize,
00218 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00219 _ASN1CGeneralizedTime(OSRTContext& ctxt, ASN1VisibleString& buf,
00220 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00221 } ASN1CGeneralizedTime;
00222 #endif // _NO_UTILS_CLASSES
00223
00231 #endif //__ASN1CGENTIME_H__