Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
CFxDocumentIterator.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 CFxDocumentIterator(IntPtr cPtr, bool cMemoryOwn) : base(PCADGlobalsPINVOKE.CFxDocumentIterator_SWIGUpcast(cPtr), cMemoryOwn) {
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(CFxDocumentIterator 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 static CFxDocumentIterator cast(OdRxObject pObj) {// OdSmartPtr<CFxDocumentIterator>
45 MemoryManager mMan = MemoryManager.GetMemoryManager();
46 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
48
49 CFxDocumentIterator ret = null;
50 if (null != mTrans)
51 {
52 mTrans.AddObject((CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true));
53 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, false);
54 }
55 else
56 {
57 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true);
58 }
59
61 return ret;
62}
63
64 public new static OdRxClass desc() {
65 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxDocumentIterator_desc(),false); /*createInt 3_2*/
66
68 return ret;
69}
70
71 public override OdRxClass isA() {
72 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),PCADGlobalsPINVOKE.CFxDocumentIterator_isA(swigCPtr),false); /*createInt 3_2*/
73
75 return ret;
76}
77
78 public override OdRxObject queryX(OdRxClass protocolClass) {
79 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),PCADGlobalsPINVOKE.CFxDocumentIterator_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
80
82 return ret;
83}
84
85 public static CFxDocumentIterator createObject() {// OdSmartPtr<CFxDocumentIterator>
86 MemoryManager mMan = MemoryManager.GetMemoryManager();
87 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
89
90 CFxDocumentIterator ret = null;
91 if (null != mTrans)
92 {
93 mTrans.AddObject((CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true));
94 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, false);
95 }
96 else
97 {
98 ret = (CFxDocumentIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(CFxDocumentIterator),ptr, true);
99 }
100
102 return ret;
103}
104
105 public virtual bool Done() {
106 bool ret = PCADGlobalsPINVOKE.CFxDocumentIterator_Done(swigCPtr);
108 return ret;
109 }
110
111 public virtual void Step() {
114 }
115
116 public virtual CFxDocument Document() {
117 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.CFxDocumentIterator_Document(swigCPtr);
118 CFxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxDocument(cPtr, false);
120 return ret;
121 }
122
123 public virtual void Seek(CFxDocument pDocument) {
126 }
127
128 public virtual void Start() {
131 }
132
133 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
134 string ret = PCADGlobalsPINVOKE.CFxDocumentIterator_getRealClassName(ptr /*SIMPLETYPE*/);
136 return ret;
137 }
138
139}
140
141}
static HandleRef getCPtr(CFxDocument obj)
Definition: CFxDocument.cs:27
static CFxDocumentIterator cast(OdRxObject pObj)
virtual void Seek(CFxDocument pDocument)
CFxDocumentIterator(IntPtr cPtr, bool cMemoryOwn)
static string getRealClassName(IntPtr ptr)
override void Dispose(bool disposing)
static HandleRef getCPtr(CFxDocumentIterator obj)
override OdRxObject queryX(OdRxClass protocolClass)
static CFxDocumentIterator createObject()
static IntPtr CFxDocumentIterator_queryX(HandleRef jarg1, HandleRef jarg2)
static IntPtr CFxDocumentIterator_isA(HandleRef jarg1)
static bool CFxDocumentIterator_Done(HandleRef jarg1)
static global::System.IntPtr CFxDocumentIterator_Document(HandleRef jarg1)
static IntPtr CFxDocumentIterator_createObject()
static IntPtr CFxDocumentIterator_desc()
static void CFxDocumentIterator_Start(HandleRef jarg1)
static string CFxDocumentIterator_getRealClassName(IntPtr jarg1)
static void CFxDocumentIterator_Seek(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxDocumentIterator_Step(HandleRef jarg1)
static void delete_CFxDocumentIterator(HandleRef jarg1)
static IntPtr CFxDocumentIterator_cast(HandleRef jarg1)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26