mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 09:15:54 +01:00
wip
This commit is contained in:
@@ -23,12 +23,9 @@ void BinaryMasterFile::CreateMasterFile(const std::string filePath,
|
|||||||
os << filePath << "/" << fileNamePrefix << "_master"
|
os << filePath << "/" << fileNamePrefix << "_master"
|
||||||
<< "_" << fileIndex << ".raw";
|
<< "_" << fileIndex << ".raw";
|
||||||
fileName_ = os.str();
|
fileName_ = os.str();
|
||||||
if (!(silentMode)) {
|
|
||||||
LOG(logINFO) << "Master File: " << fileName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// create file
|
// create file
|
||||||
if (!(overWriteEnable)) {
|
if (!overWriteEnable) {
|
||||||
if (nullptr == (fd_ = fopen((const char *)fileName_.c_str(), "wx"))) {
|
if (nullptr == (fd_ = fopen((const char *)fileName_.c_str(), "wx"))) {
|
||||||
fd_ = nullptr;
|
fd_ = nullptr;
|
||||||
throw sls::RuntimeError("Could not create binary master file " +
|
throw sls::RuntimeError("Could not create binary master file " +
|
||||||
@@ -39,7 +36,9 @@ void BinaryMasterFile::CreateMasterFile(const std::string filePath,
|
|||||||
throw sls::RuntimeError(
|
throw sls::RuntimeError(
|
||||||
"Could not create/overwrite binary master file " + fileName_);
|
"Could not create/overwrite binary master file " + fileName_);
|
||||||
}
|
}
|
||||||
|
if (!silentMode) {
|
||||||
|
LOG(logINFO) << "Master File: " << fileName_;
|
||||||
|
}
|
||||||
attr->WriteMasterBinaryAttributes(fd_);
|
attr->WriteMasterBinaryAttributes(fd_);
|
||||||
CloseFile();
|
CloseFile();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -723,7 +723,6 @@ void Implementation::SetupWriter() {
|
|||||||
// master file
|
// master file
|
||||||
std::unique_ptr<MasterAttributes> masterAttributes;
|
std::unique_ptr<MasterAttributes> masterAttributes;
|
||||||
if (masterFileWriteEnable && modulePos == 0) {
|
if (masterFileWriteEnable && modulePos == 0) {
|
||||||
std::unique_ptr<MasterAttributes> masterAttributes;
|
|
||||||
switch (detType) {
|
switch (detType) {
|
||||||
case GOTTHARD:
|
case GOTTHARD:
|
||||||
masterAttributes = sls::make_unique<GotthardMasterAttributes>();
|
masterAttributes = sls::make_unique<GotthardMasterAttributes>();
|
||||||
|
|||||||
Reference in New Issue
Block a user