Date.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------------------
00002 // Copyright (c) 2001-2008 by PDFTron Systems Inc. All Rights Reserved.
00003 // Consult legal.txt regarding legal and license information.
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 (UShort 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 
00077          void Attach(SDF::Obj d);
00078 
00088          bool Update(SDF::Obj d = NULL);
00089 
00093         UShort GetYear(); 
00094 
00098         char GetMonth();
00099 
00103         char GetDay();
00104 
00108         char GetHour();
00109 
00113         char GetMinute();
00114 
00118         char GetSecond();
00119 
00124         char GetUT();      
00125 
00129         char GetUTHour();  
00130 
00134         char GetUTMin();
00135 };
00136 
00137 
00138 #include <Impl/Date.inl>
00139 
00140         };      // namespace PDF
00141 };      // namespace pdftron
00142 
00143 #endif
00144 

© 2002-2008 PDFTron Systems Inc.