mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 22:42:23 +02:00
Add EXTENSION parameter for filename
This commit is contained in:
@@ -7,6 +7,7 @@ using namespace std;
|
||||
const size_t BufferUtils::FILE_MOD = 1000;
|
||||
// Must be power of 10 and >= than FILE_MOD.
|
||||
const size_t BufferUtils::FOLDER_MOD = 100000;
|
||||
const std::string BufferUtils::FILE_EXTENSION = ".h5";
|
||||
|
||||
string BufferUtils::get_filename(
|
||||
std::string root_folder,
|
||||
@@ -23,7 +24,7 @@ string BufferUtils::get_filename(
|
||||
folder << root_folder << "/";
|
||||
folder << device_name << "/";
|
||||
folder << folder_base << "/";
|
||||
folder << file_base << ".bin";
|
||||
folder << file_base << FILE_EXTENSION;
|
||||
|
||||
return folder.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user