14using System.Runtime.InteropServices;
18 private Object locker =
new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 swigCPtr =
new HandleRef(
this, cPtr);
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
30 protected override void Dispose(
bool disposing) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
39 base.Dispose(disposing);
44 : this(
TD_DbPINVOKE.new_OdDbPageController(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
46 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
52 SwigDirectorConnect();
62 MemoryManager mMan = MemoryManager.GetMemoryManager();
63 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
117 private void SwigDirectorConnect() {
118 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
120 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
122 if (SwigDerivedClassHasMethod(
"pagingType", swigMethodTypes2))
124 if (SwigDerivedClassHasMethod(
"read", swigMethodTypes3))
126 if (SwigDerivedClassHasMethod(
"write", swigMethodTypes4))
128 if (SwigDerivedClassHasMethod(
"setDatabase", swigMethodTypes5))
130 if (SwigDerivedClassHasMethod(
"database", swigMethodTypes6))
132 if (SwigDerivedClassHasMethod(
"subPage", swigMethodTypes7))
137 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
138 global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance,
null, methodTypes,
null);
139 bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(
OdDbPageController));
140 return hasDerivedMethod;
143 private IntPtr SwigDirectorMethodqueryX(IntPtr pClass) {
152 private IntPtr SwigDirectorMethodisA() {
159 private int SwigDirectorMethodpagingType() {
163 private IntPtr SwigDirectorMethodread(
long key) {
167 private bool SwigDirectorMethodwrite(
long key, IntPtr pStreamBuf) {
168 return write(out key,
173 private void SwigDirectorMethodsetDatabase(IntPtr pDb) {
175 (OdDbDatabase)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdDbDatabase),pDb,
false)
179 private IntPtr SwigDirectorMethoddatabase() {
182 OdDbDatabase.getCPtr(
database()).Handle
186 private int SwigDirectorMethodsubPage(global::System.IntPtr objectId) {
187 return (
int)
subPage(
new OdDbObjectId(objectId,
false));
208 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
209 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
210 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { };
211 private static global::System.Type[] swigMethodTypes3 =
new global::System.Type[] { typeof(
long) };
212 private static global::System.Type[] swigMethodTypes4 =
new global::System.Type[] { typeof(
long).MakeByRefType(), typeof(
OdStreamBuf) };
213 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(OdDbDatabase) };
214 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { };
215 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { typeof(OdDbObjectId) };
static HandleRef getCPtr(OdRxClass obj)
static HandleRef getCPtr(OdRxObject obj)
virtual OdRxObject queryX(OdRxClass pClass)
static HandleRef getCPtr(OdStreamBuf obj)
static HandleRef getCPtr(OdDbDatabase obj)
static HandleRef getCPtr(OdDbObjectId obj)
static string getRealClassName(IntPtr ptr)
delegate IntPtr SwigDelegateOdDbPageController_0(IntPtr pClass)
delegate bool SwigDelegateOdDbPageController_4(long key, IntPtr pStreamBuf)
static HandleRef getCPtr(OdDbPageController obj)
virtual bool write(out long key, OdStreamBuf pStreamBuf)
delegate void SwigDelegateOdDbPageController_5(IntPtr pDb)
virtual OdStreamBuf read(long key)
virtual int vb_pagingType()
virtual OdResult subPage(OdDbObjectId objectId)
virtual void setDatabase(OdDbDatabase pDb)
delegate IntPtr SwigDelegateOdDbPageController_3(long key)
delegate IntPtr SwigDelegateOdDbPageController_1()
delegate int SwigDelegateOdDbPageController_2()
override void Dispose(bool disposing)
virtual OdDbDatabase database()
OdDbPageController(IntPtr cPtr, bool cMemoryOwn)
delegate IntPtr SwigDelegateOdDbPageController_6()
delegate int SwigDelegateOdDbPageController_7(global::System.IntPtr objectId)
static global::System.Exception Retrieve()
static bool OdDbPageController_write(HandleRef jarg1, out long jarg2, HandleRef jarg3)
static void OdDbPageController_setDatabase(HandleRef jarg1, HandleRef jarg2)
static int OdDbPageController_pagingType(HandleRef jarg1)
static IntPtr OdDbPageController_read(HandleRef jarg1, long jarg2)
static int OdDbPageController_subPageSwigExplicitOdDbPageController(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdDbPageController_subPage(HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbPageController_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, OdDbPageController.SwigDelegateOdDbPageController_0 delegate0, OdDbPageController.SwigDelegateOdDbPageController_1 delegate1, OdDbPageController.SwigDelegateOdDbPageController_2 delegate2, OdDbPageController.SwigDelegateOdDbPageController_3 delegate3, OdDbPageController.SwigDelegateOdDbPageController_4 delegate4, OdDbPageController.SwigDelegateOdDbPageController_5 delegate5, OdDbPageController.SwigDelegateOdDbPageController_6 delegate6, OdDbPageController.SwigDelegateOdDbPageController_7 delegate7)
static void delete_OdDbPageController(HandleRef jarg1)
static string OdDbPageController_getRealClassName(IntPtr jarg1)
static IntPtr OdDbPageController_database(HandleRef jarg1)