/* ----------------------------------------------------------------------------
 * 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: Observer extends: SwigProxy fields: swigCPtrForObserver, swigCMemoryOwn {

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

  Method [ getCPtrForObserver
    ^swigCPtrForObserver
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Method [ update: arg 
    CslNI cslNI_Observer_update: swigCPtrForObserver with: (SwigTypePvoid getCPtr: arg)
  ]

}
