|
| | DeviceModelStorageSqlite (const fs::path &db_path, const std::filesystem::path &migration_files_path="", const std::filesystem::path &config_path="", const bool init_db=false) |
| | Opens SQLite connection at given db_path. More...
|
| |
| std::map< Component, std::map< Variable, VariableMetaData > > | get_device_model () final |
| | Gets the device model from the device model interface. More...
|
| |
| std::optional< VariableAttribute > | get_variable_attribute (const Component &component_id, const Variable &variable_id, const AttributeEnum &attribute_enum) final |
| | Gets a VariableAttribute from the storage if present. More...
|
| |
| std::vector< VariableAttribute > | get_variable_attributes (const Component &component_id, const Variable &variable_id, const std::optional< AttributeEnum > &attribute_enum) final |
| | Gets a std::vector<VariableAttribute> from the storage. More...
|
| |
| bool | set_variable_attribute_value (const Component &component_id, const Variable &variable_id, const AttributeEnum &attribute_enum, const std::string &value, const std::string &source) final |
| | Sets the value of an VariableAttribute if present. More...
|
| |
| std::optional< VariableMonitoringMeta > | set_monitoring_data (const SetMonitoringData &data, const VariableMonitorType type) final |
| | Inserts or replaces a variable monitor in the database. More...
|
| |
| bool | update_monitoring_reference (const int32_t monitor_id, const std::string &reference_value) final |
| | Updates the reference value for a monitor. The reference values is used for the delta monitors to detect a trigger, and must be updated when a trigger is detected. More...
|
| |
| std::vector< VariableMonitoringMeta > | get_monitoring_data (const std::vector< MonitoringCriterionEnum > &criteria, const Component &component_id, const Variable &variable_id) final |
| | Returns all the monitors currently in the database based on the provided filtering criteria. More...
|
| |
| ClearMonitoringStatusEnum | clear_variable_monitor (int monitor_id, bool allow_protected) final |
| | Clears a single monitor based on the ID from the database. More...
|
| |
| int32_t | clear_custom_variable_monitors () final |
| | Clears all custom monitors (that were added by the CSMS) from the database. More...
|
| |
| void | check_integrity () final |
| | Check data integrity of the stored data: For "required" variables, assert values exist. Checks might be extended in the future. More...
|
| |
| virtual DeviceModelMap | get_device_model ()=0 |
| | Gets the device model from the device model interface. More...
|
| |
| virtual std::optional< VariableAttribute > | get_variable_attribute (const Component &component_id, const Variable &variable_id, const AttributeEnum &attribute_enum)=0 |
| | Gets a VariableAttribute from the storage if present. More...
|
| |
| virtual std::vector< VariableAttribute > | get_variable_attributes (const Component &component_id, const Variable &variable_id, const std::optional< AttributeEnum > &attribute_enum=std::nullopt)=0 |
| | Gets a std::vector<VariableAttribute> from the storage. More...
|
| |
| virtual bool | set_variable_attribute_value (const Component &component_id, const Variable &variable_id, const AttributeEnum &attribute_enum, const std::string &value, const std::string &source)=0 |
| | Sets the value of an VariableAttribute if present. More...
|
| |
| virtual std::optional< VariableMonitoringMeta > | set_monitoring_data (const SetMonitoringData &data, const VariableMonitorType type)=0 |
| | Inserts or replaces a variable monitor in the database. More...
|
| |
| virtual bool | update_monitoring_reference (const int32_t monitor_id, const std::string &reference_value)=0 |
| | Updates the reference value for a monitor. The reference values is used for the delta monitors to detect a trigger, and must be updated when a trigger is detected. More...
|
| |
| virtual std::vector< VariableMonitoringMeta > | get_monitoring_data (const std::vector< MonitoringCriterionEnum > &criteria, const Component &component_id, const Variable &variable_id)=0 |
| | Returns all the monitors currently in the database based on the provided filtering criteria. More...
|
| |
| virtual ClearMonitoringStatusEnum | clear_variable_monitor (int monitor_id, bool allow_protected)=0 |
| | Clears a single monitor based on the ID from the database. More...
|
| |
| virtual int32_t | clear_custom_variable_monitors ()=0 |
| | Clears all custom monitors (that were added by the CSMS) from the database. More...
|
| |
| virtual void | check_integrity ()=0 |
| | Check data integrity of the stored data: For "required" variables, assert values exist. Checks might be extended in the future. More...
|
| |