forked from yuangu/sxtwl_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTime.java
More file actions
143 lines (110 loc) · 3.13 KB
/
Time.java
File metadata and controls
143 lines (110 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.seantone.sxtwl;
public class Time {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Time(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Time obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
sxtwlJNI.delete_Time(swigCPtr);
}
swigCPtr = 0;
}
}
public Time() {
this(sxtwlJNI.new_Time__SWIG_0(), true);
}
public Time(int year, int month, int day, double hour, double min, double sec) {
this(sxtwlJNI.new_Time__SWIG_1(year, month, day, hour, min, sec), true);
}
public void setY(int value) {
sxtwlJNI.Time_Y_set(swigCPtr, this, value);
}
public int getY() {
return sxtwlJNI.Time_Y_get(swigCPtr, this);
}
public void setM(int value) {
sxtwlJNI.Time_M_set(swigCPtr, this, value);
}
public int getM() {
return sxtwlJNI.Time_M_get(swigCPtr, this);
}
public void setD(int value) {
sxtwlJNI.Time_D_set(swigCPtr, this, value);
}
public int getD() {
return sxtwlJNI.Time_D_get(swigCPtr, this);
}
public void setH(double value) {
sxtwlJNI.Time_h_set(swigCPtr, this, value);
}
public double getH() {
return sxtwlJNI.Time_h_get(swigCPtr, this);
}
public void setM(double value) {
sxtwlJNI.Time_m_set(swigCPtr, this, value);
}
public double getM() {
return sxtwlJNI.Time_m_get(swigCPtr, this);
}
public void setS(double value) {
sxtwlJNI.Time_s_set(swigCPtr, this, value);
}
public double getS() {
return sxtwlJNI.Time_s_get(swigCPtr, this);
}
public int getYear() {
return sxtwlJNI.Time_getYear(swigCPtr, this);
}
public void setYear(int year) {
sxtwlJNI.Time_setYear(swigCPtr, this, year);
}
public void setMonth(int month) {
sxtwlJNI.Time_setMonth(swigCPtr, this, month);
}
public int getMonth() {
return sxtwlJNI.Time_getMonth(swigCPtr, this);
}
public int getDay() {
return sxtwlJNI.Time_getDay(swigCPtr, this);
}
public void setDay(int day) {
sxtwlJNI.Time_setDay(swigCPtr, this, day);
}
public double getHour() {
return sxtwlJNI.Time_getHour(swigCPtr, this);
}
public void setHour(double hour) {
sxtwlJNI.Time_setHour(swigCPtr, this, hour);
}
public double getMin() {
return sxtwlJNI.Time_getMin(swigCPtr, this);
}
public void setMour(double min) {
sxtwlJNI.Time_setMour(swigCPtr, this, min);
}
public double getSec() {
return sxtwlJNI.Time_getSec(swigCPtr, this);
}
public void setSec(double sec) {
sxtwlJNI.Time_setSec(swigCPtr, this, sec);
}
}