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
00109 EXTRTMETHOD ASN1CGeneralizedTime(OSRTContext& ctxt, char*& buf, int bufSize,
00110 OSBOOL useDerRules = FALSE);
00111
00112 EXTRTMETHOD ASN1CGeneralizedTime(OSRTContext& ctxt, ASN1GeneralizedTime& buf,
00113 OSBOOL useDerRules = FALSE);
00114
00115
00116
00117 ASN1CGeneralizedTime (const ASN1CGeneralizedTime& original) :
00118 ASN1CTime (original) {}
00119
00130
00131
00132
00133
00134
00135 EXTRTMETHOD int getCentury();
00136
00146
00147
00148
00149
00150 EXTRTMETHOD int setCentury(short century);
00151
00168 EXTRTMETHOD int setTime(time_t time, OSBOOL diffTime);
00169
00170 const ASN1CGeneralizedTime& operator = (const ASN1CGeneralizedTime& tm) {
00171 return (const ASN1CGeneralizedTime&) ASN1CTime::operator = (tm);
00172 }
00173 protected:
00174
00175
00176
00177
00178 EXTRTMETHOD int compileString();
00179 } ;
00180 #else
00181 typedef class _ASN1CGeneralizedTime : public _ASN1CTime {
00182 protected:
00183 _ASN1CGeneralizedTime(char*& buf, int bufSize, OSBOOL useDerRules) {}
00184 _ASN1CGeneralizedTime(ASN1VisibleString& buf, OSBOOL useDerRules) {}
00185 public:
00186 _ASN1CGeneralizedTime (OSRTMessageBufferIF& msgBuf, char*& buf, int sz,
00187 OSBOOL useDerRules = FALSE) :
00188 _ASN1CTime (msgBuf, buf, sz, useDerRules) {}
00189 _ASN1CGeneralizedTime (OSRTMessageBufferIF& msgBuf, ASN1VisibleString& buf,
00190 OSBOOL useDerRules = FALSE) :
00191 _ASN1CTime (msgBuf, buf, useDerRules) {}
00192 _ASN1CGeneralizedTime(OSRTContext& ctxt, char*& buf, int bufSize,
00193 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00194 _ASN1CGeneralizedTime(OSRTContext& ctxt, ASN1VisibleString& buf,
00195 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00196 } ASN1CGeneralizedTime;
00197 #endif // _NO_UTILS_CLASSES
00198
00206 #endif //__ASN1CGENTIME_H__