65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
/* ----------------------------------------------------------------------------
|
|
* 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 LogStream : AllocateFromAssimpHeap {
|
|
private HandleRef swigCPtr;
|
|
|
|
internal LogStream(IntPtr cPtr, bool cMemoryOwn) : base(AssimpPINVOKE.LogStreamUpcast(cPtr), cMemoryOwn) {
|
|
swigCPtr = new HandleRef(this, cPtr);
|
|
}
|
|
|
|
internal static HandleRef getCPtr(LogStream obj) {
|
|
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
}
|
|
|
|
~LogStream() {
|
|
Dispose();
|
|
}
|
|
|
|
public override void Dispose() {
|
|
lock(this) {
|
|
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
if (swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
AssimpPINVOKE.delete_LogStream(swigCPtr);
|
|
}
|
|
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
}
|
|
GC.SuppressFinalize(this);
|
|
base.Dispose();
|
|
}
|
|
}
|
|
|
|
public virtual void write(string message) {
|
|
AssimpPINVOKE.LogStream_write(swigCPtr, message);
|
|
}
|
|
|
|
public static LogStream createDefaultStream(aiDefaultLogStream stream, string name, IOSystem io) {
|
|
IntPtr cPtr = AssimpPINVOKE.LogStream_createDefaultStream__SWIG_0((int)stream, name, IOSystem.getCPtr(io));
|
|
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
|
|
return ret;
|
|
}
|
|
|
|
public static LogStream createDefaultStream(aiDefaultLogStream stream, string name) {
|
|
IntPtr cPtr = AssimpPINVOKE.LogStream_createDefaultStream__SWIG_1((int)stream, name);
|
|
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
|
|
return ret;
|
|
}
|
|
|
|
public static LogStream createDefaultStream(aiDefaultLogStream stream) {
|
|
IntPtr cPtr = AssimpPINVOKE.LogStream_createDefaultStream__SWIG_2((int)stream);
|
|
LogStream ret = (cPtr == IntPtr.Zero) ? null : new LogStream(cPtr, false);
|
|
return ret;
|
|
}
|
|
|
|
}
|