3#ifndef _DataStoreConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _DataStoreConf_0_dunedaq__appmodel_0_appmodel_H_
22 class HDF5FileLayoutParams;
41 virtual
void init(
bool init_children);
59 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
96 inline static const
std::
string s_type = "type";
98 inline static const
std::
string s_mode = "mode";
122 std::lock_guard scoped_lock(
m_mutex);
137 std::lock_guard scoped_lock(
m_mutex);
154 std::lock_guard scoped_lock(
m_mutex);
170 std::lock_guard scoped_lock(
m_mutex);
182 inline static const std::string
All_per_file =
"all-per-file";
196 std::lock_guard scoped_lock(
m_mutex);
212 std::lock_guard scoped_lock(
m_mutex);
228 std::lock_guard scoped_lock(
m_mutex);
243 std::lock_guard scoped_lock(
m_mutex);
259 std::lock_guard scoped_lock(
m_mutex);
274 std::lock_guard scoped_lock(
m_mutex);
290 std::lock_guard scoped_lock(
m_mutex);
305 std::lock_guard scoped_lock(
m_mutex);
321 std::lock_guard scoped_lock(
m_mutex);
336 std::lock_guard scoped_lock(
m_mutex);
361 std::lock_guard scoped_lock(
m_mutex);
366 std::ostringstream text;
392 std::lock_guard scoped_lock(
m_mutex);
397 std::ostringstream text;
398 text <<
"relationship \"" <<
s_filename_params <<
"\" of object " <<
this <<
" is not set";
420 return obj.print_object(s);
static const std::string s_disable_unique_filename_suffix
void set_filename_params(const dunedaq::appmodel::FilenameParams *value)
Set "filename_params" relationship value.
static const std::string & __get_mode_str() noexcept
static const std::string & s_class_name
static const std::string s_free_space_safety_factor
uint8_t get_compression_level() const
Get "compression_level" attribute value.
static const std::string & __get_type_str() noexcept
DataStoreConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_directory_path(const std::string &value)
Set "directory_path" attribute value. The base directory for saving files.
virtual void init(bool init_children)
static const std::string s_compression_level
const dunedaq::appmodel::HDF5FileLayoutParams * get_file_layout_params() const
Get "file_layout_params" relationship value.
const std::string & get_type() const
Get "type" attribute value.
bool get_disable_unique_filename_suffix() const
Get "disable_unique_filename_suffix" attribute value.
static const std::string & __get_free_space_safety_factor_str() noexcept
std::string m_directory_path
const dunedaq::appmodel::FilenameParams * m_filename_params
static const std::string s_directory_path
static const std::string & __get_directory_path_str() noexcept
int32_t get_free_space_safety_factor() const
Get "free_space_safety_factor" attribute value.
void set_max_file_size(uint64_t value)
Set "max_file_size" attribute value.
const dunedaq::appmodel::HDF5FileLayoutParams * m_file_layout_params
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string & __get_max_file_size_str() noexcept
const std::string & get_mode() const
Get "mode" attribute value. The operation mode that the DataStore should use when organizing the data...
static const std::string s_file_layout_params
uint8_t m_compression_level
const std::string & get_directory_path() const
Get "directory_path" attribute value. The base directory for saving files.
static const std::string & __get_file_layout_params_str() noexcept
friend class conffwk::DalFactory
static const std::string s_filename_params
int32_t m_free_space_safety_factor
virtual ~DataStoreConf() noexcept
static const std::string & __get_disable_unique_filename_suffix_str() noexcept
void set_mode(const std::string &value)
Set "mode" attribute value. The operation mode that the DataStore should use when organizing the data...
static const std::string s_type
void set_disable_unique_filename_suffix(bool value)
Set "disable_unique_filename_suffix" attribute value.
friend class conffwk::DalObject
void set_free_space_safety_factor(int32_t value)
Set "free_space_safety_factor" attribute value.
static const std::string & __get_filename_params_str() noexcept
static const std::string & __get_compression_level_str() noexcept
bool m_disable_unique_filename_suffix
void set_compression_level(uint8_t value)
Set "compression_level" attribute value.
static const std::string s_max_file_size
void set_type(const std::string &value)
Set "type" attribute value.
static const std::string s_mode
void set_file_layout_params(const dunedaq::appmodel::HDF5FileLayoutParams *value)
Set "file_layout_params" relationship value.
uint64_t get_max_file_size() const
Get "max_file_size" attribute value.
const dunedaq::appmodel::FilenameParams * get_filename_params() const
Get "filename_params" relationship value.
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_by_ref(const std::string &name, T &value)
Set attribute value.
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Generic configuration exception.
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constDataStoreConf * >::const_iterator DataStoreConfIterator
static const std::string All_per_file
static const std::string One_event_per_file