You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

99 line
2.8 KiB

  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.8
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. using System;
  9. using System.Runtime.InteropServices;
  10. public class aiString : IDisposable {
  11. private HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal aiString(IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new HandleRef(this, cPtr);
  16. }
  17. internal static HandleRef getCPtr(aiString obj) {
  18. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~aiString() {
  21. Dispose();
  22. }
  23. public virtual void Dispose() {
  24. lock(this) {
  25. if (swigCPtr.Handle != IntPtr.Zero) {
  26. if (swigCMemOwn) {
  27. swigCMemOwn = false;
  28. AssimpPINVOKE.delete_aiString(swigCPtr);
  29. }
  30. swigCPtr = new HandleRef(null, IntPtr.Zero);
  31. }
  32. GC.SuppressFinalize(this);
  33. }
  34. }
  35. public override string ToString() { return Data; }
  36. public aiString() : this(AssimpPINVOKE.new_aiString__SWIG_0(), true) {
  37. }
  38. public aiString(aiString rOther) : this(AssimpPINVOKE.new_aiString__SWIG_1(aiString.getCPtr(rOther)), true) {
  39. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  40. }
  41. public aiString(string pString) : this(AssimpPINVOKE.new_aiString__SWIG_2(pString), true) {
  42. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  43. }
  44. public aiString __set__(string sz) {
  45. aiString ret = new aiString(AssimpPINVOKE.aiString___set____SWIG_0(swigCPtr, sz), false);
  46. return ret;
  47. }
  48. public bool __equal__(aiString other) {
  49. bool ret = AssimpPINVOKE.aiString___equal__(swigCPtr, aiString.getCPtr(other));
  50. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  51. return ret;
  52. }
  53. public bool __nequal__(aiString other) {
  54. bool ret = AssimpPINVOKE.aiString___nequal__(swigCPtr, aiString.getCPtr(other));
  55. if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
  56. return ret;
  57. }
  58. public string C_Str() {
  59. string ret = AssimpPINVOKE.aiString_C_Str(swigCPtr);
  60. return ret;
  61. }
  62. public uint Length {
  63. set {
  64. AssimpPINVOKE.aiString_Length_set(swigCPtr, value);
  65. }
  66. get {
  67. uint ret = AssimpPINVOKE.aiString_Length_get(swigCPtr);
  68. return ret;
  69. }
  70. }
  71. public string Data {
  72. set {
  73. AssimpPINVOKE.aiString_Data_set(swigCPtr, value);
  74. }
  75. get {
  76. string ret = AssimpPINVOKE.aiString_Data_get(swigCPtr);
  77. return ret;
  78. }
  79. }
  80. }