mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 15:44:12 +02:00
Format const correctness
This commit is contained in:
+5
-5
@@ -32,7 +32,7 @@ enum DATA_LOCATION {
|
||||
|
||||
|
||||
struct h5_base {
|
||||
h5_base(std::string name, NODE_TYPE node_type) : name(name), node_type(node_type){};
|
||||
h5_base(const std::string& name, NODE_TYPE node_type) : name(name), node_type(node_type){};
|
||||
virtual ~h5_base(){};
|
||||
std::string name;
|
||||
NODE_TYPE node_type;
|
||||
@@ -45,23 +45,23 @@ struct h5_data_base{
|
||||
};
|
||||
|
||||
struct h5_parent: public h5_base{
|
||||
h5_parent(std::string name, NODE_TYPE node_type, std::list<h5_base*> items) : h5_base(name, node_type), items(items) {};
|
||||
h5_parent(const std::string& name, NODE_TYPE node_type, const std::list<h5_base*>& items) : h5_base(name, node_type), items(items) {};
|
||||
std::list<h5_base*> items;
|
||||
};
|
||||
|
||||
struct h5_group : public h5_parent {
|
||||
h5_group(std::string name, std::list<h5_base*> items) : h5_parent(name, GROUP, items) {};
|
||||
h5_group(const std::string& name, const std::list<h5_base*>& items) : h5_parent(name, GROUP, items) {};
|
||||
};
|
||||
|
||||
struct h5_dataset : public h5_parent, public h5_data_base{
|
||||
h5_dataset(std::string name, std::string value, DATA_TYPE data_type, std::list<h5_base*> items={})
|
||||
h5_dataset(const std::string& name, const std::string& value, DATA_TYPE data_type, const std::list<h5_base*>& items={})
|
||||
: h5_parent(name, DATASET, items), h5_data_base(data_type, REFERENCE), value(value) {};
|
||||
|
||||
std::string value;
|
||||
};
|
||||
|
||||
struct h5_attr : public h5_base, public h5_data_base {
|
||||
h5_attr(std::string name, h5_value value, DATA_TYPE data_types, DATA_LOCATION data_location=IMMEDIATE)
|
||||
h5_attr(const std::string& name, const h5_value& value, DATA_TYPE data_types, DATA_LOCATION data_location=IMMEDIATE)
|
||||
: h5_base(name, ATTRIBUTE), h5_data_base(data_types, data_location), value(value){};
|
||||
h5_value value;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user