Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDieselService.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDieselService : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDieselService(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDieselService obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public virtual bool getSystemVariable(String sName, ref string sValue) {
53IntPtr tmp_sValue = Marshal.StringToCoTaskMemUni(sValue);
54 IntPtr saved_sValue = tmp_sValue;
55 try {
56 bool ret = TD_DbPINVOKE.OdDieselService_getSystemVariable(swigCPtr, sName, ref tmp_sValue);
58 return ret;
59 } finally {
60if (tmp_sValue != saved_sValue) sValue = Marshal.PtrToStringUni(tmp_sValue);
61 }
62 }
63
64 public virtual void getUnits(Int32 /*SIMPLETYPE*/ pAngularUnits, Int32 /*SIMPLETYPE*/ pAngularPrec, Int32 /*SIMPLETYPE*/ pLinearUnits, Int32 /*SIMPLETYPE*/ pLinearPrec, Int32 /*SIMPLETYPE*/ pDimzin, Int32 /*SIMPLETYPE*/ pUnitMode) {
65 TD_DbPINVOKE.OdDieselService_getUnits(swigCPtr, pAngularUnits /*SIMPLETYPE*/, pAngularPrec /*SIMPLETYPE*/, pLinearUnits /*SIMPLETYPE*/, pLinearPrec /*SIMPLETYPE*/, pDimzin /*SIMPLETYPE*/, pUnitMode /*SIMPLETYPE*/);
67 }
68
69 public virtual bool getEnvironmentVariable(String sName, ref string sValue) {
70IntPtr tmp_sValue = Marshal.StringToCoTaskMemUni(sValue);
71 IntPtr saved_sValue = tmp_sValue;
72 try {
73 bool ret = TD_DbPINVOKE.OdDieselService_getEnvironmentVariable(swigCPtr, sName, ref tmp_sValue);
75 return ret;
76 } finally {
77if (tmp_sValue != saved_sValue) sValue = Marshal.PtrToStringUni(tmp_sValue);
78 }
79 }
80
81 public virtual bool getDrawingProperty(String sName, ref string sValue) {
82IntPtr tmp_sValue = Marshal.StringToCoTaskMemUni(sValue);
83 IntPtr saved_sValue = tmp_sValue;
84 try {
85 bool ret = TD_DbPINVOKE.OdDieselService_getDrawingProperty(swigCPtr, sName, ref tmp_sValue);
87 return ret;
88 } finally {
89if (tmp_sValue != saved_sValue) sValue = Marshal.PtrToStringUni(tmp_sValue);
90 }
91 }
92
93}
94
95}
virtual bool getSystemVariable(String sName, ref string sValue)
static HandleRef getCPtr(OdDieselService obj)
virtual bool getDrawingProperty(String sName, ref string sValue)
virtual void getUnits(Int32 pAngularUnits, Int32 pAngularPrec, Int32 pLinearUnits, Int32 pLinearPrec, Int32 pDimzin, Int32 pUnitMode)
OdDieselService(IntPtr cPtr, bool cMemoryOwn)
virtual bool getEnvironmentVariable(String sName, ref string sValue)
virtual void Dispose(bool disposing)
static global::System.Exception Retrieve()
static bool OdDieselService_getDrawingProperty(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, ref IntPtr jarg3)
static bool OdDieselService_getEnvironmentVariable(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, ref IntPtr jarg3)
static bool OdDieselService_getSystemVariable(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, ref IntPtr jarg3)
static void OdDieselService_getUnits(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2, Int32 jarg3, Int32 jarg4, Int32 jarg5, Int32 jarg6, Int32 jarg7)
static void delete_OdDieselService(global::System.Runtime.InteropServices.HandleRef jarg1)