Package gda.device.detector.nxdetector
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 Summary
Modifier and TypeMethodDescriptionvoidsetFileNameTemplate(String fileNameTemplate) The file name to use.voidsetFilePathTemplate(String filePathTemplate) The file path to use.voidsetFileTemplate(String fileTemplate) File template to use.
-
Method Details
-
setFileTemplate
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
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
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-
-