All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Date.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef H_PDFDate
6 #define H_PDFDate
7 
8 #include <SDF/Obj.h>
9 #include <C/PDF/TRN_Date.h>
10 
11 namespace pdftron {
12  namespace PDF {
13 
14 
28 class Date : public TRN_Date
29 {
30 public:
31 
35  Date ();
36 
42  Date (SDF::Obj d);
43 
54  Date (UInt16 year, char month, char day, char hour, char minute, char second);
55 
59  Date (const Date& d);
60 
64  Date& operator=(const Date& d);
65 
74  bool IsValid() const;
75 
80  void SetCurrentTime();
81 
88  void Attach(SDF::Obj d);
89 
99  bool Update(SDF::Obj d = NULL);
100 
104  UInt16 GetYear();
105 
106 #ifndef SWIG
107 
110  char GetMonth();
111 
115  char GetDay();
116 
120  char GetHour();
121 
125  char GetMinute();
126 
130  char GetSecond();
131 
136  char GetUT();
137 
141  char GetUTHour();
142 
146  char GetUTMin();
147 #else // SWIG
148  UInt8 GetMonth();
149  UInt8 GetDay();
150  UInt8 GetHour();
151  UInt8 GetMinute();
152  UInt8 GetSecond();
153  UInt8 GetUT();
154  UInt8 GetUTHour();
155  UInt8 GetUTMin();
156 #endif // SWIG
157 };
158 
159 
160 #include <Impl/Date.inl>
161 
162  }; // namespace PDF
163 }; // namespace pdftron
164 
165 #endif // H_PDFDate
void Attach(SDF::Obj d)
TRN_UInt16 UInt16
Definition: BasicTypes.h:14
TRN_UInt8 UInt8
Definition: BasicTypes.h:15
bool Update(SDF::Obj d=NULL)
bool IsValid() const
Date & operator=(const Date &d)