00001
00002
00003
00004
00005
00006 #ifndef H_PDFDate
00007 #define H_PDFDate
00008
00009
00010 #include <SDF/Obj.h>
00011 #include <C/PDF/TRN_Date.h>
00012
00013 namespace pdftron {
00014 namespace PDF {
00015
00016
00030 class Date : public TRN_Date
00031 {
00032 public:
00033
00037 Date ();
00038
00043 Date (SDF::Obj d);
00044
00049 Date (UInt16 year, char month, char day, char hour, char minute, char second);
00050
00054 Date (const Date& d);
00055
00059 Date& operator=(const Date& d);
00060
00069 bool IsValid() const;
00070
00075 void SetCurrentTime();
00076
00083 void Attach(SDF::Obj d);
00084
00094 bool Update(SDF::Obj d = NULL);
00095
00099 UInt16 GetYear();
00100
00104 char GetMonth();
00105
00109 char GetDay();
00110
00114 char GetHour();
00115
00119 char GetMinute();
00120
00124 char GetSecond();
00125
00130 char GetUT();
00131
00135 char GetUTHour();
00136
00140 char GetUTMin();
00141 };
00142
00143
00144 #include <Impl/Date.inl>
00145
00146 };
00147 };
00148
00149 #endif
00150