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

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

  Method [ getCPtrForCVariable
    ^swigCPtrForCVariable
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ value: value
    ^self fromPointer: (CslNI cslNI_new_CVariable__SWIG_1: value) memoryOwn: true
  ]

  Method [ value 
    ^CslNI cslNI_CVariable_value: swigCPtrForCVariable 
  ]

  Method [ setValue: x 
    CslNI cslNI_CVariable_setValue__SWIG_0: swigCPtrForCVariable with: x
  ]

  Method [ setValue: x 
    CslNI cslNI_CVariable_setValue__SWIG_1: swigCPtrForCVariable with: x
  ]

  Method [ setValue: x 
    CslNI cslNI_CVariable_setValue__SWIG_2: swigCPtrForCVariable with: x
  ]

}
