Main Page
Namespaces
Classes
Files
File List
File Members
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-2018 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
pdftron::PDF::Date::Attach
void Attach(SDF::Obj d)
pdftron::PDF::Date::GetUTMin
char GetUTMin()
pdftron::PDF::Date::GetMinute
char GetMinute()
pdftron::UInt16
TRN_UInt16 UInt16
Definition:
BasicTypes.h:14
pdftron::PDF::Date::GetHour
char GetHour()
pdftron::UInt8
TRN_UInt8 UInt8
Definition:
BasicTypes.h:15
pdftron::PDF::Date::Update
bool Update(SDF::Obj d=NULL)
pdftron::PDF::Date
Definition:
Date.h:28
pdftron::PDF::Date::IsValid
bool IsValid() const
pdftron::PDF::Date::GetYear
UInt16 GetYear()
pdftron::PDF::Date::SetCurrentTime
void SetCurrentTime()
Obj.h
pdftron::PDF::Date::GetMonth
char GetMonth()
pdftron::PDF::Date::GetSecond
char GetSecond()
pdftron::PDF::Date::GetUT
char GetUT()
pdftron::PDF::Date::Date
Date()
pdftron::SDF::Obj
Definition:
Obj.h:40
pdftron::PDF::Date::GetDay
char GetDay()
pdftron::PDF::Date::operator=
Date & operator=(const Date &d)
pdftron::PDF::Date::GetUTHour
char GetUTHour()
© 2002-2014
PDFTron Systems Inc.