Interface NXFileWriterWithTemplate

All Known Implementing Classes:
ExcaliburMultipleImagesPerHDF5FileWriter, ExcaliburMultipleImagesPerParallelHDF5FileWriter, FileWriterBase, MultipleHDF5PluginsPerDetectorFileWriter, MultipleImagesPerHDF5FileWriter, MultipleImagesPerParallelHDF5FileWriter, NonAsyncSingleImagePerFileWriter, ODCCDOverflow, ODCCDSingleExposure, PilatusCamserverFileWriter, SingleImagePerFileWriter, SingleImagePerFileWriterWithNumTracker, XmapMultipleImagesPerHDF5FileWriter

public interface NXFileWriterWithTemplate
This class allows non area detector NXFilewriter plugins to implement the same interface for setting file templates as is used by gda.device.detector.addetector.filewriter.FileWriterBase.
  • Method Details

    • setFileTemplate

      void setFileTemplate(String fileTemplate)
      File template to use. AreaDetector's NDFilePlugin will always apply arguments to the template in the order filepath, filename, filenumber, so classes which implement this interface should do likewise. Unused trailing arguments should be ignored. For instance "%s%s" should concatenate filePathTemplate and fileNameTemplate) while "%s%s_03%d" should concatenate filePathTemplate, fileNameTemplate and fileNumber.
      Parameters:
      fileTemplate -
    • setFilePathTemplate

      void setFilePathTemplate(String filePathTemplate)
      The file path to use. If present, the string "$scan$" should be replaced with the currently running scan number and "$datadir$" should be replaced with the current scan file's directory.
      Parameters:
      filePathTemplate -
    • setFileNameTemplate

      void setFileNameTemplate(String fileNameTemplate)
      The file name to use. If present, the string "$scan$" should be replaced with the currently running scan number and "$datadir$" should be replaced with the current scan file's directory.
      Parameters:
      fileNameTemplate -