v1.0.0-rc.34
This commit is contained in:
@@ -9,16 +9,20 @@ FileWriterSettings &FileWriterSettings::OverwriteExistingFiles(bool input) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileWriterSettings &FileWriterSettings::HDF5MasterFormatVersion(int input) {
|
||||
if ((input == 1) || (input == 2))
|
||||
hdf5_master_format_version = input;
|
||||
else
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Only 1 and 2 allowed");
|
||||
return *this;
|
||||
FileWriterSettings &FileWriterSettings::HDF5MasterFormatVersion(FileWriterFileFormat input) {
|
||||
switch (input) {
|
||||
case FileWriterFileFormat::DataOnly:
|
||||
case FileWriterFileFormat::NXmxLegacy:
|
||||
case FileWriterFileFormat::NXmxVDS:
|
||||
hdf5_master_format_version = input;
|
||||
return *this;
|
||||
default:
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Only 1 and 2 allowed");
|
||||
}
|
||||
}
|
||||
|
||||
int FileWriterSettings::GetHDF5MasterFormatVersion() const {
|
||||
FileWriterFileFormat FileWriterSettings::GetHDF5MasterFormatVersion() const {
|
||||
return hdf5_master_format_version;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user