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 __ASN1CUTCTIME_H__
00026 #define __ASN1CUTCTIME_H__
00027
00028 #include "rtsrc/ASN1CTime.h"
00029
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00056 #ifndef _NO_UTILS_CLASSES
00057
00068 class EXTRTCLASS ASN1CUTCTime : public ASN1CTime {
00069 protected:
00070 ASN1TUTCTime timeObj;
00071
00072 virtual ASN1TTime& getTimeObj () { return timeObj; }
00073 virtual const ASN1TTime& getTimeObj () const { return timeObj; }
00074
00075 EXTRTMETHOD ASN1CUTCTime(char*& buf, int bufSize, OSBOOL useDerRules = FALSE);
00076 EXTRTMETHOD ASN1CUTCTime(ASN1UTCTime& buf, OSBOOL useDerRules = FALSE);
00077
00078 public:
00093 EXTRTMETHOD ASN1CUTCTime(OSRTMessageBufferIF& msgBuf, char*& buf, int bufSize,
00094 OSBOOL useDerRules = FALSE);
00095
00109 EXTRTMETHOD ASN1CUTCTime(OSRTMessageBufferIF& msgBuf, ASN1UTCTime& buf,
00110 OSBOOL useDerRules = FALSE);
00111
00112 EXTRTMETHOD ASN1CUTCTime(OSRTContext& ctxt, char*& buf, int bufSize,
00113 OSBOOL useDerRules = FALSE);
00114
00115 EXTRTMETHOD ASN1CUTCTime(OSRTContext& ctxt, ASN1UTCTime& buf,
00116 OSBOOL useDerRules = FALSE);
00117
00118
00119
00120 ASN1CUTCTime (const ASN1CUTCTime& original) :
00121 ASN1CTime (original) {}
00122
00134 EXTRTMETHOD int setTime(time_t time, OSBOOL diffTime);
00135
00136 const ASN1CUTCTime& operator = (const ASN1CUTCTime& tm) {
00137 return (ASN1CUTCTime&) ASN1CTime::operator = (tm);
00138 }
00139
00140 protected:
00141
00142
00143
00144
00145 EXTRTMETHOD int compileString();
00146
00147
00148
00149
00150
00151 EXTRTMETHOD int getFraction();
00152
00153
00154
00155
00156
00157 EXTRTMETHOD int setFraction(int fraction);
00158
00159 } ;
00160 #else
00161 typedef class _ASN1CUTCTime : public _ASN1CTime {
00162 protected:
00163 _ASN1CUTCTime(char*& buf, int bufSize, OSBOOL useDerRules) {}
00164 _ASN1CUTCTime(ASN1VisibleString& buf, OSBOOL useDerRules) {}
00165 public:
00166 _ASN1CUTCTime (OSRTMessageBufferIF& msgBuf, char*& buf, int sz,
00167 OSBOOL useDerRules = FALSE) :
00168 _ASN1CTime (msgBuf, buf, sz, useDerRules) {}
00169 _ASN1CUTCTime (OSRTMessageBufferIF& msgBuf, ASN1VisibleString& buf,
00170 OSBOOL useDerRules = FALSE) :
00171 _ASN1CTime (msgBuf, buf, useDerRules) {}
00172 _ASN1CUTCTime(OSRTContext& ctxt, char*& buf, int bufSize,
00173 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00174 _ASN1CUTCTime(OSRTContext& ctxt, ASN1VisibleString& buf,
00175 OSBOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00176 } ASN1CUTCTime;
00177 #endif // _NO_UTILS_CLASSES
00178 #endif //__ASN1CUTCTIME_H__
00179