/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.40 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ using System; using System.Runtime.InteropServices; public class IOSystem : AllocateFromAssimpHeap { private HandleRef swigCPtr; internal IOSystem(IntPtr cPtr, bool cMemoryOwn) : base(AssimpPINVOKE.IOSystemUpcast(cPtr), cMemoryOwn) { swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(IOSystem obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } ~IOSystem() { Dispose(); } public override void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; AssimpPINVOKE.delete_IOSystem(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); } GC.SuppressFinalize(this); base.Dispose(); } } public bool Exists(string pFile) { bool ret = AssimpPINVOKE.IOSystem_Exists__SWIG_0(swigCPtr, pFile); if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve(); return ret; } public virtual char getOsSeparator() { char ret = AssimpPINVOKE.IOSystem_getOsSeparator(swigCPtr); return ret; } public virtual IOStream Open(string pFile, string pMode) { IntPtr cPtr = AssimpPINVOKE.IOSystem_Open__SWIG_0(swigCPtr, pFile, pMode); IOStream ret = (cPtr == IntPtr.Zero) ? null : new IOStream(cPtr, false); return ret; } public virtual IOStream Open(string pFile) { IntPtr cPtr = AssimpPINVOKE.IOSystem_Open__SWIG_1(swigCPtr, pFile); IOStream ret = (cPtr == IntPtr.Zero) ? null : new IOStream(cPtr, false); return ret; } public virtual void Close(IOStream pFile) { AssimpPINVOKE.IOSystem_Close(swigCPtr, IOStream.getCPtr(pFile)); } public virtual bool ComparePaths(string one, string second) { bool ret = AssimpPINVOKE.IOSystem_ComparePaths__SWIG_0(swigCPtr, one, second); return ret; } }