/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: Model extends: SwigProxy fields: swigCPtrForModel, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForModel := newCPtr.
  ]

  Method [ getCPtrForModel
    ^swigCPtrForModel
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForModel ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Model: swigCPtrForModel.
    ].
    swigCPtrForModel := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForModel
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_Model) memoryOwn: true
  ]

  Method [ attachObserver: arg0 
    CslNI cslNI_Model_attachObserver: swigCPtrForModel with: (Observer getCPtr: arg0)
  ]

  Method [ detachObserver: arg0 
    CslNI cslNI_Model_detachObserver: swigCPtrForModel with: (Observer getCPtr: arg0)
  ]

  Method [ changed: argument 
    CslNI cslNI_Model_changed: swigCPtrForModel with: (SwigTypePvoid getCPtr: argument)
  ]

}
