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

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

  Method [ getCPtrForSdifFile
    ^swigCPtrForSdifFile
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForSdifFile ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      LorisNI lorisNI_delete_SdifFile: swigCPtrForSdifFile.
    ].
    swigCPtrForSdifFile := 0.
  ]

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

  Function [ filename: filename
    ^self fromPointer: (LorisNI lorisNI_new_SdifFile__SWIG_0: filename asNullTermStringParameter) memoryOwn: true
  ]

  Function [ new
    ^self fromPointer: (LorisNI lorisNI_new_SdifFile__SWIG_1) memoryOwn: true
  ]

  Method [ write: path 
    LorisNI lorisNI_SdifFile_write: swigCPtrForSdifFile with: path asNullTermStringParameter
  ]

  Method [ write1TRC: path 
    LorisNI lorisNI_SdifFile_write1TRC: swigCPtrForSdifFile with: path asNullTermStringParameter
  ]

  Function [ l: l
    ^self fromPointer: (LorisNI lorisNI_new_SdifFile__SWIG_2: (PartialList getCPtr: l)) memoryOwn: true
  ]

  Method [ partials 
    |cPtr|
    cPtr := LorisNI lorisNI_SdifFile_partials: swigCPtrForSdifFile .
    ^(cPtr == 0) ifTrue:[ nil ] ifFalse:[ PartialList fromPointer: cPtr memoryOwn: true ]
  ]

  Method [ addPartials: l 
    LorisNI lorisNI_SdifFile_addPartials: swigCPtrForSdifFile with: (PartialList getCPtr: l)
  ]

  Method [ markers 
    ^MarkerVector fromPointer: LorisNI lorisNI_SdifFile_markers: swigCPtrForSdifFile  memoryOwn: true
  ]

  Method [ addMarkers: markers 
    LorisNI lorisNI_SdifFile_addMarkers: swigCPtrForSdifFile with: (MarkerVector getCPtr: markers)
  ]

  Method [ setMarkers: markers 
    LorisNI lorisNI_SdifFile_setMarkers: swigCPtrForSdifFile with: (MarkerVector getCPtr: markers)
  ]

}
