mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-10 14:52:03 +02:00
Const correctness enforcement
This commit is contained in:
+17
-17
@@ -67,33 +67,33 @@ struct h5_attr : public h5_base, public h5_data_base {
|
||||
};
|
||||
|
||||
namespace H5Format {
|
||||
hsize_t expand_dataset(const H5::DataSet& dataset, hsize_t frame_index, hsize_t dataset_increase_step);
|
||||
void compact_dataset(const H5::DataSet& dataset, hsize_t max_frame_index);
|
||||
hsize_t expand_dataset(H5::DataSet& dataset, hsize_t frame_index, hsize_t dataset_increase_step);
|
||||
void compact_dataset(H5::DataSet& dataset, hsize_t max_frame_index);
|
||||
|
||||
H5::Group create_group(H5::Group& target, std::string name);
|
||||
H5::PredType get_dataset_data_type(std::string& type);
|
||||
H5::Group create_group(H5::Group& target, const std::string& name);
|
||||
H5::PredType get_dataset_data_type(const std::string& type);
|
||||
|
||||
H5::DataSet write_dataset(H5::Group& target, h5_dataset& dataset, std::map<std::string, boost::any>& values);
|
||||
H5::DataSet write_dataset(H5::Group& target, std::string name, double value);
|
||||
H5::DataSet write_dataset(H5::Group& target, std::string name, int value);
|
||||
H5::DataSet write_dataset(H5::Group& target, std::string name, std::string value);
|
||||
H5::DataSet write_dataset(H5::Group& target, const h5_dataset& dataset, const std::map<std::string, boost::any>& values);
|
||||
H5::DataSet write_dataset(H5::Group& target, const std::string& name, double value);
|
||||
H5::DataSet write_dataset(H5::Group& target, const std::string& name, int value);
|
||||
H5::DataSet write_dataset(H5::Group& target, const std::string& name, const std::string& value);
|
||||
|
||||
void write_attribute(H5::H5Object& target, h5_attr& attribute, std::map<std::string, boost::any>& values);
|
||||
void write_attribute(H5::H5Object& target, std::string name, std::string value);
|
||||
void write_attribute(H5::H5Object& target, std::string name, int value);
|
||||
void write_attribute(H5::H5Object& target, const h5_attr& attribute, const std::map<std::string, boost::any>& values);
|
||||
void write_attribute(H5::H5Object& target, const std::string& name, const std::string& value);
|
||||
void write_attribute(H5::H5Object& target, const std::string& name, int value);
|
||||
|
||||
boost::any get_value_from_reference(std::string& dataset_name, boost::any value_reference, std::map<std::string, boost::any>& values);
|
||||
const boost::any& get_value_from_reference(const std::string& dataset_name, const boost::any& value_reference, const std::map<std::string, boost::any>& values);
|
||||
|
||||
void write_format_data(H5::Group& file_node, h5_parent& format_node, std::map<std::string, h5_value>& values);
|
||||
void write_format(H5::H5File& file, std::map<std::string, h5_value>& input_values, std::string frames_dataset_name);
|
||||
void write_format_data(H5::Group& file_node, const h5_parent& format_node, const std::map<std::string, h5_value>& values);
|
||||
void write_format(H5::H5File& file, const std::map<std::string, h5_value>& input_values, const std::string& frames_dataset_name);
|
||||
};
|
||||
|
||||
// Move this somewhere else.
|
||||
std::map<std::string, DATA_TYPE>* get_input_value_type();
|
||||
const std::map<std::string, DATA_TYPE>* get_input_value_type();
|
||||
std::map<std::string, boost::any>* get_default_values();
|
||||
h5_group* get_format_definition();
|
||||
const h5_group* get_format_definition();
|
||||
void add_calculated_values(std::map<std::string, boost::any>& values);
|
||||
void add_input_values(std::map<std::string, boost::any>& values, std::map<std::string, boost::any>& input_values);
|
||||
void add_input_values(std::map<std::string, boost::any>& values, const std::map<std::string, boost::any>& input_values);
|
||||
std::string get_frames_dataset_name();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user