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-2024 by Apryse Software 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 
87  void SetUT(char ut);
88 
93  void SetUTHour(Int8 ut_hour);
94 
99  void SetUTMinutes(Int8 ut_minutes);
100 
107  void Attach(SDF::Obj d);
108 
118  bool Update(SDF::Obj d = NULL);
119 
123  UInt16 GetYear();
124 
125 #ifndef SWIG
126 
129  char GetMonth();
130 
134  char GetDay();
135 
139  char GetHour();
140 
144  char GetMinute();
145 
149  char GetSecond();
150 
155  char GetUT();
156 
160  char GetUTHour();
161 
165  char GetUTMin();
166 #else // SWIG
167  UInt8 GetMonth();
168  UInt8 GetDay();
169  UInt8 GetHour();
170  UInt8 GetMinute();
171  UInt8 GetSecond();
172  UInt8 GetUT();
173  UInt8 GetUTHour();
174  UInt8 GetUTMin();
175 #endif // SWIG
176 };
177 
178 
179 #include <Impl/Date.inl>
180 
181  }; // namespace PDF
182 }; // namespace pdftron
183 
184 #endif // H_PDFDate
void Attach(SDF::Obj d)
TRN_UInt16 UInt16
Definition: BasicTypes.h:14
void SetUTMinutes(Int8 ut_minutes)
TRN_UInt8 UInt8
Definition: BasicTypes.h:15
bool Update(SDF::Obj d=NULL)
bool IsValid() const
void SetUT(char ut)
void SetUTHour(Int8 ut_hour)
TRN_Int8 Int8
Definition: BasicTypes.h:18
Date & operator=(const Date &d)