Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdTimeStamp.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdTimeStamp : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdTimeStamp(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdTimeStamp obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdTimeStamp() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdTimeStamp() : this(GlobalsPINVOKE.new_OdTimeStamp__SWIG_0(), true) {
53 }
54
55 public OdTimeStamp(OdTimeStamp.InitialValue init) : this(GlobalsPINVOKE.new_OdTimeStamp__SWIG_1((int)init), true) {
57 }
58
59 public void getDate(out short month, out short day, out short year) {
60 GlobalsPINVOKE.OdTimeStamp_getDate(swigCPtr, out month, out day, out year);
62 }
63
69
70 public short month() {
71 short ret = GlobalsPINVOKE.OdTimeStamp_month(swigCPtr);
73 return ret;
74 }
75
80
81 public short day() {
82 short ret = GlobalsPINVOKE.OdTimeStamp_day(swigCPtr);
84 return ret;
85 }
86
91
92 public short year() {
93 short ret = GlobalsPINVOKE.OdTimeStamp_year(swigCPtr);
95 return ret;
96 }
97
102
103 public void getTime(out short hour, out short minute, out short second, out short millisecond) {
104 GlobalsPINVOKE.OdTimeStamp_getTime(swigCPtr, out hour, out minute, out second, out millisecond);
106 }
107
112
113 public short hour() {
114 short ret = GlobalsPINVOKE.OdTimeStamp_hour(swigCPtr);
116 return ret;
117 }
118
123
124 public short minute() {
125 short ret = GlobalsPINVOKE.OdTimeStamp_minute(swigCPtr);
127 return ret;
128 }
129
134
135 public short second() {
136 short ret = GlobalsPINVOKE.OdTimeStamp_second(swigCPtr);
138 return ret;
139 }
140
145
146 public short millisecond() {
147 short ret = GlobalsPINVOKE.OdTimeStamp_millisecond(swigCPtr);
149 return ret;
150 }
151
156
161
166
171
176
181
182 public UInt32 julianDay() {
183// test csout
184 /*SIMPLETYPE*/
185 UInt32 ret = GlobalsPINVOKE.OdTimeStamp_julianDay(swigCPtr);
187 return ret;
188 }
189
194
195 public UInt32 msecsPastMidnight() {
196// test csout
197 /*SIMPLETYPE*/
198 UInt32 ret = GlobalsPINVOKE.OdTimeStamp_msecsPastMidnight(swigCPtr);
200 return ret;
201 }
202
207
212
213 public double julianFraction() {
214 double ret = GlobalsPINVOKE.OdTimeStamp_julianFraction(swigCPtr);
216 return ret;
217 }
218
223
224 public bool IsEqual(OdTimeStamp tStamp) {
225 bool ret = GlobalsPINVOKE.OdTimeStamp_IsEqual(swigCPtr, OdTimeStamp.getCPtr(tStamp));
227 return ret;
228 }
229
230 public bool IsNotEqual(OdTimeStamp tStamp) {
231 bool ret = GlobalsPINVOKE.OdTimeStamp_IsNotEqual(swigCPtr, OdTimeStamp.getCPtr(tStamp));
233 return ret;
234 }
235
241
247
253
259
260 public void ctime(ref string timeString) {
261IntPtr tmp_timeString = Marshal.StringToCoTaskMemUni(timeString);
262 IntPtr saved_timeString = tmp_timeString;
263 try {
264 GlobalsPINVOKE.OdTimeStamp_ctime(swigCPtr, ref tmp_timeString);
266 } finally {
267if (tmp_timeString != saved_timeString) timeString = Marshal.PtrToStringUni(tmp_timeString);
268 }
269 }
270
271 public void strftime(String format, ref string timeString) {
272IntPtr tmp_timeString = Marshal.StringToCoTaskMemUni(timeString);
273 IntPtr saved_timeString = tmp_timeString;
274 try {
275 GlobalsPINVOKE.OdTimeStamp_strftime(swigCPtr, format, ref tmp_timeString);
277 } finally {
278if (tmp_timeString != saved_timeString) timeString = Marshal.PtrToStringUni(tmp_timeString);
279 }
280 }
281
282 public Int64 packedValue() {
283// test csout
284 /*SIMPLETYPE*/
285 Int64 ret = GlobalsPINVOKE.OdTimeStamp_packedValue(swigCPtr);
287 return ret;
288 }
289
294
295 public short weekday() {
296 short ret = GlobalsPINVOKE.OdTimeStamp_weekday(swigCPtr);
298 return ret;
299 }
300
301 public enum InitialValue {
302 kInitZero = 1,
303 kInitLocalTime = 2,
305 }
306
307}
308
309}
static global::System.Exception Retrieve()
static UInt32 OdTimeStamp_msecsPastMidnight(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdTimeStamp(global::System.Runtime.InteropServices.HandleRef jarg1)
static short OdTimeStamp_second(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_getDate(global::System.Runtime.InteropServices.HandleRef jarg1, out short jarg2, out short jarg3, out short jarg4)
static void OdTimeStamp_setPackedValue(global::System.Runtime.InteropServices.HandleRef jarg1, Int64 jarg2)
static bool OdTimeStamp_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdTimeStamp_julianFraction(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_setTime(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2, short jarg3, short jarg4, short jarg5)
static short OdTimeStamp_day(global::System.Runtime.InteropServices.HandleRef jarg1)
static short OdTimeStamp_millisecond(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_setJulianDay(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void OdTimeStamp_setMinute(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static Int64 OdTimeStamp_packedValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_getTime(global::System.Runtime.InteropServices.HandleRef jarg1, out short jarg2, out short jarg3, out short jarg4, out short jarg5)
static short OdTimeStamp_weekday(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTimeStamp_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdTimeStamp_universalToLocal(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_localToUniversal(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_setYear(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static short OdTimeStamp_hour(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_setSecond(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static void OdTimeStamp_setToZero(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_strftime(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, ref IntPtr jarg3)
static void OdTimeStamp_setJulianFraction(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdTimeStamp_setMsecsPastMidnight(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static global::System.IntPtr OdTimeStamp_subtract(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdTimeStamp_setJulianDate(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, UInt32 jarg3)
static void OdTimeStamp_setMillisecond(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static UInt32 OdTimeStamp_julianDay(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTimeStamp_setDate(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2, short jarg3, short jarg4)
static short OdTimeStamp_month(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_getUniversalTime(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_getLocalTime(global::System.Runtime.InteropServices.HandleRef jarg1)
static short OdTimeStamp_minute(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_setMonth(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static global::System.IntPtr OdTimeStamp_add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdTimeStamp_setHour(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static void OdTimeStamp_setDay(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2)
static short OdTimeStamp_year(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTimeStamp_ctime(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2)
static bool OdTimeStamp_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdTimeStamp_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
bool IsNotEqual(OdTimeStamp tStamp)
void setMillisecond(short millisecond)
void setHour(short hour)
void setJulianDay(UInt32 julianDay)
OdTimeStamp(OdTimeStamp.InitialValue init)
void getTime(out short hour, out short minute, out short second, out short millisecond)
void setJulianFraction(double julianFraction)
static HandleRef getCPtr(OdTimeStamp obj)
OdTimeStamp(IntPtr cPtr, bool cMemoryOwn)
void setTime(short hour, short minute, short second, short millisecond)
void setJulianDate(UInt32 julianDay, UInt32 msecsPastMidnight)
void getDate(out short month, out short day, out short year)
void setMonth(short month)
void setMsecsPastMidnight(UInt32 msecsPastMidnight)
bool IsEqual(OdTimeStamp tStamp)
void setDay(short day)
OdTimeStamp Add(OdTimeStamp tStamp)
void setYear(short year)
OdTimeStamp Sub(OdTimeStamp tStamp)
OdTimeStamp subtract(OdTimeStamp tStamp)
void strftime(String format, ref string timeString)
void setSecond(short second)
void setPackedValue(Int64 t)
void setMinute(short minute)
OdResult setDate(short month, short day, short year)
void ctime(ref string timeString)
virtual void Dispose(bool disposing)
OdTimeStamp add(OdTimeStamp tStamp)