Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxHistoryArg.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public CFxHistoryArg(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxHistoryArg_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxHistoryArg obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 protected override void Dispose(bool disposing) {
32 lock(this) {
33 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
34 if (swigCMemOwn) {
35 swigCMemOwn = false;
37 }
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 base.Dispose(disposing);
41 }
42 }
43
44 public virtual OdResBuf GetData() {// OdResBufPtr
45 MemoryManager mMan = MemoryManager.GetMemoryManager();
46 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
47 IntPtr ptr = PCADGlobalsPINVOKE.CFxHistoryArg_GetData(swigCPtr);
48
49 OdResBuf ret = null;
50 if (null != mTrans)
51 {
52 mTrans.AddObject((OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdResBuf),ptr, true));
53 ret = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdResBuf),ptr, false);
54 }
55 else
56 {
57 ret = (OdResBuf)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdResBuf),ptr, true);
58 }
59
61 return ret;
62}
63
64 public virtual void SetData(OdResBuf pValue) {
67 }
68
70 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxHistoryArg_Create(OdResBuf.getCPtr(value));
71 CFxHistoryArg ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxHistoryArg(cPtr, false);
73 return ret;
74 }
75
76 public static CFxHistoryArg Cast(CFxHistoryObject pObject) {
77 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxHistoryArg_Cast(CFxHistoryObject.getCPtr(pObject));
78 CFxHistoryArg ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxHistoryArg(cPtr, false);
80 return ret;
81 }
82
83}
84
85}
static HandleRef getCPtr(CFxHistoryArg obj)
static CFxHistoryArg Create(OdResBuf value)
virtual OdResBuf GetData()
CFxHistoryArg(IntPtr cPtr, bool cMemoryOwn)
override void Dispose(bool disposing)
static CFxHistoryArg Cast(CFxHistoryObject pObject)
virtual void SetData(OdResBuf pValue)
static HandleRef getCPtr(CFxHistoryObject obj)
static void delete_CFxHistoryArg(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr CFxHistoryArg_GetData(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxHistoryArg_Cast(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxHistoryArg_Create(HandleRef jarg1)
static void CFxHistoryArg_SetData(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static HandleRef getCPtr(OdResBuf obj)
Definition: OdResBuf.cs:26