Merge branch 'developer' into jf_h5reader

This commit is contained in:
hinger_v 2025-03-10 12:24:33 +01:00
commit 670d4dbce4
2 changed files with 6 additions and 1 deletions

View File

@ -919,7 +919,12 @@ void Implementation::CreateUDPSockets() {
} }
void Implementation::SetupWriter() { void Implementation::SetupWriter() {
try { try {
//check if filePath empty and throw error
if(filePath.empty()){
throw ReceiverError("File path cannot be empty");
}
// check if folder exists and throw if it cant create // check if folder exists and throw if it cant create
mkdir_p(filePath); mkdir_p(filePath);
// create first files // create first files

View File

@ -314,7 +314,7 @@ class Implementation : private virtual slsDetectorDefs {
// file parameters // file parameters
fileFormat fileFormatType{BINARY}; fileFormat fileFormatType{BINARY};
std::string filePath{"/"}; std::string filePath{};
std::string fileName{"run"}; std::string fileName{"run"};
uint64_t fileIndex{0}; uint64_t fileIndex{0};
bool fileWriteEnable{false}; bool fileWriteEnable{false};