17 private Object locker =
new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 swigCPtr =
new HandleRef(
this, cPtr);
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
29 protected override void Dispose(
bool disposing) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
38 base.Dispose(disposing);
43 : this(
GlobalsPINVOKE.new_RxSystemServicesImpl(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
45 MemoryTransaction mTr = MemoryManager.GetMemoryManager().GetCurrentTransaction();
51 SwigDirectorConnect();
52 DelegateHolder.OnHoldSwigDirectorDelegates(
this);
56 MemoryManager mMan = MemoryManager.GetMemoryManager();
57 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
76 MemoryManager mMan = MemoryManager.GetMemoryManager();
77 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
96 MemoryManager mMan = MemoryManager.GetMemoryManager();
97 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
116 MemoryManager mMan = MemoryManager.GetMemoryManager();
117 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
171IntPtr tmp_value = Marshal.StringToCoTaskMemUni(
value);
172 IntPtr saved_value = tmp_value;
178if (tmp_value != saved_value)
value = Marshal.PtrToStringUni(tmp_value);
194 private void SwigDirectorConnect() {
195 if (SwigDerivedClassHasMethod(
"queryX", swigMethodTypes0))
197 if (SwigDerivedClassHasMethod(
"isA", swigMethodTypes1))
199 if (SwigDerivedClassHasMethod(
"copyFrom", swigMethodTypes2))
201 if (SwigDerivedClassHasMethod(
"createFile", swigMethodTypes3))
203 if (SwigDerivedClassHasMethod(
"createFile", swigMethodTypes4))
205 if (SwigDerivedClassHasMethod(
"createFile", swigMethodTypes5))
207 if (SwigDerivedClassHasMethod(
"createFile", swigMethodTypes6))
209 if (SwigDerivedClassHasMethod(
"accessFile", swigMethodTypes7))
211 if (SwigDerivedClassHasMethod(
"getFileCTime", swigMethodTypes8))
213 if (SwigDerivedClassHasMethod(
"getFileMTime", swigMethodTypes9))
215 if (SwigDerivedClassHasMethod(
"getFileSize", swigMethodTypes10))
217 if (SwigDerivedClassHasMethod(
"createGuid", swigMethodTypes11))
219 if (SwigDerivedClassHasMethod(
"loadModule", swigMethodTypes12))
221 if (SwigDerivedClassHasMethod(
"unloadModule", swigMethodTypes13))
223 if (SwigDerivedClassHasMethod(
"findModule", swigMethodTypes14))
225 if (SwigDerivedClassHasMethod(
"findModule", swigMethodTypes15))
227 if (SwigDerivedClassHasMethod(
"warning", swigMethodTypes16))
229 if (SwigDerivedClassHasMethod(
"warning", swigMethodTypes17))
231 if (SwigDerivedClassHasMethod(
"initModelerLibrary", swigMethodTypes18))
233 if (SwigDerivedClassHasMethod(
"uninitModelerLibrary", swigMethodTypes19))
235 if (SwigDerivedClassHasMethod(
"getEnvVar", swigMethodTypes20))
237 if (SwigDerivedClassHasMethod(
"setEnvVar", swigMethodTypes21))
239 if (SwigDerivedClassHasMethod(
"getTemporaryPath", swigMethodTypes22))
241 if (SwigDerivedClassHasMethod(
"getUserName", swigMethodTypes23))
243 if (SwigDerivedClassHasMethod(
"getUserName", swigMethodTypes24))
245 if (SwigDerivedClassHasMethod(
"getTempFileName", swigMethodTypes25))
247 GlobalsPINVOKE.
RxSystemServicesImpl_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25);
250 private bool SwigDerivedClassHasMethod(
string methodName, global::System.Type[] methodTypes) {
251 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);
253 return hasDerivedMethod;
256 private IntPtr SwigDirectorMethodqueryX(IntPtr pClass) {
260 (OdRxClass)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),pClass,
false)
265 private IntPtr SwigDirectorMethodisA() {
268 OdRxClass.getCPtr(
isA()).Handle
272 private void SwigDirectorMethodcopyFrom(IntPtr pSource) {
278 private IntPtr SwigDirectorMethodcreateFile__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]
String filename,
int accessMode,
int shareMode,
int creationDisposition) {
282 private IntPtr SwigDirectorMethodcreateFile__SWIG_1([MarshalAs(UnmanagedType.LPWStr)]
String filename,
int accessMode,
int shareMode) {
286 private IntPtr SwigDirectorMethodcreateFile__SWIG_2([MarshalAs(UnmanagedType.LPWStr)]
String filename,
int accessMode) {
290 private IntPtr SwigDirectorMethodcreateFile__SWIG_3([MarshalAs(UnmanagedType.LPWStr)]
String filename) {
291 return OdStreamBuf.getCPtr(
createFile(filename)).Handle;
294 private bool SwigDirectorMethodaccessFile([MarshalAs(UnmanagedType.LPWStr)]
String filename,
int accessMode) {
298 private Int64 SwigDirectorMethodgetFileCTime([MarshalAs(UnmanagedType.LPWStr)]
String filename) {
302 private Int64 SwigDirectorMethodgetFileMTime([MarshalAs(UnmanagedType.LPWStr)]
String filename) {
306 private Int64 SwigDirectorMethodgetFileSize([MarshalAs(UnmanagedType.LPWStr)]
String filename) {
310 [
return: MarshalAs(UnmanagedType.LPWStr)]
311 private String SwigDirectorMethodcreateGuid() {
315 private IntPtr SwigDirectorMethodloadModule([MarshalAs(UnmanagedType.LPWStr)]
String moduleFileName,
bool silent) {
318 OdRxModule.getCPtr(
loadModule(moduleFileName, silent)).Handle
322 private void SwigDirectorMethodunloadModule(IntPtr pModuleObj) {
324 (OdRxModule)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxModule),pModuleObj,
false)
328 [
return: MarshalAs(UnmanagedType.LPWStr)]
329 private String SwigDirectorMethodfindModule__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]
String applicationName) {
333 [
return: MarshalAs(UnmanagedType.LPWStr)]
334 private String SwigDirectorMethodfindModule__SWIG_1([MarshalAs(UnmanagedType.LPWStr)]
String applicationName,
int loadReason) {
338 private void SwigDirectorMethodwarning__SWIG_0([MarshalAs(UnmanagedType.LPWStr)]
String message) {
342 private void SwigDirectorMethodwarning__SWIG_1(
string warnVisGroup, [MarshalAs(UnmanagedType.LPWStr)]
String message) {
343 warning(warnVisGroup, message);
346 private int SwigDirectorMethodinitModelerLibrary(IntPtr pDict) {
348 (OdRxDictionary)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxDictionary),pDict,
false)
352 private int SwigDirectorMethoduninitModelerLibrary(IntPtr pDict) {
354 (OdRxDictionary)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxDictionary),pDict,
false)
358 private int SwigDirectorMethodgetEnvVar([MarshalAs(UnmanagedType.LPWStr)]
String varName, IntPtr
value) {
359 string tmp_value = Marshal.PtrToStringUni(
value);
360 string saved_value = tmp_value;
362 return (
int)
getEnvVar(varName, ref tmp_value);
364 if (tmp_value != saved_value)
value = Marshal.StringToCoTaskMemUni(tmp_value);
368 private int SwigDirectorMethodsetEnvVar([MarshalAs(UnmanagedType.LPWStr)]
String varName, [MarshalAs(UnmanagedType.LPWStr)]
String newValue) {
369 return (
int)
setEnvVar(varName, newValue);
372 [
return: MarshalAs(UnmanagedType.LPWStr)]
373 private String SwigDirectorMethodgetTemporaryPath() {
377 [
return: MarshalAs(UnmanagedType.LPWStr)]
378 private String SwigDirectorMethodgetUserName__SWIG_0(
int unFormat) {
382 [
return: MarshalAs(UnmanagedType.LPWStr)]
383 private String SwigDirectorMethodgetUserName__SWIG_1() {
387 [
return: MarshalAs(UnmanagedType.LPWStr)]
388 private String SwigDirectorMethodgetTempFileName() {
403 [
return: MarshalAs(UnmanagedType.LPWStr)]
407 [
return: MarshalAs(UnmanagedType.LPWStr)]
409 [
return: MarshalAs(UnmanagedType.LPWStr)]
417 [
return: MarshalAs(UnmanagedType.LPWStr)]
419 [
return: MarshalAs(UnmanagedType.LPWStr)]
421 [
return: MarshalAs(UnmanagedType.LPWStr)]
423 [
return: MarshalAs(UnmanagedType.LPWStr)]
453 private static global::System.Type[] swigMethodTypes0 =
new global::System.Type[] { typeof(
OdRxClass) };
454 private static global::System.Type[] swigMethodTypes1 =
new global::System.Type[] { };
455 private static global::System.Type[] swigMethodTypes2 =
new global::System.Type[] { typeof(
OdRxObject) };
458 private static global::System.Type[] swigMethodTypes5 =
new global::System.Type[] { typeof(
String), typeof(
FileAccessMode) };
459 private static global::System.Type[] swigMethodTypes6 =
new global::System.Type[] { typeof(
String) };
460 private static global::System.Type[] swigMethodTypes7 =
new global::System.Type[] { typeof(
String), typeof(
int) };
461 private static global::System.Type[] swigMethodTypes8 =
new global::System.Type[] { typeof(
String) };
462 private static global::System.Type[] swigMethodTypes9 =
new global::System.Type[] { typeof(
String) };
463 private static global::System.Type[] swigMethodTypes10 =
new global::System.Type[] { typeof(
String) };
464 private static global::System.Type[] swigMethodTypes11 =
new global::System.Type[] { };
465 private static global::System.Type[] swigMethodTypes12 =
new global::System.Type[] { typeof(
String), typeof(
bool) };
466 private static global::System.Type[] swigMethodTypes13 =
new global::System.Type[] { typeof(OdRxModule) };
467 private static global::System.Type[] swigMethodTypes14 =
new global::System.Type[] { typeof(
String) };
468 private static global::System.Type[] swigMethodTypes15 =
new global::System.Type[] { typeof(
String), typeof(
LoadReasons) };
469 private static global::System.Type[] swigMethodTypes16 =
new global::System.Type[] { typeof(
String) };
470 private static global::System.Type[] swigMethodTypes17 =
new global::System.Type[] { typeof(
string), typeof(
String) };
471 private static global::System.Type[] swigMethodTypes18 =
new global::System.Type[] { typeof(OdRxDictionary) };
472 private static global::System.Type[] swigMethodTypes19 =
new global::System.Type[] { typeof(OdRxDictionary) };
473 private static global::System.Type[] swigMethodTypes20 =
new global::System.Type[] { typeof(
String), typeof(
string).MakeByRefType() };
474 private static global::System.Type[] swigMethodTypes21 =
new global::System.Type[] { typeof(
String), typeof(
String) };
475 private static global::System.Type[] swigMethodTypes22 =
new global::System.Type[] { };
476 private static global::System.Type[] swigMethodTypes23 =
new global::System.Type[] { typeof(
UserNameFormat) };
477 private static global::System.Type[] swigMethodTypes24 =
new global::System.Type[] { };
478 private static global::System.Type[] swigMethodTypes25 =
new global::System.Type[] { };