DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <model_common_interface.hpp>
Public Member Functions | |
bool | delete_objects (type_indices::iterator, type_indices::iterator) override |
bool | update_objects (type_indices::iterator, type_indices::iterator) override |
bool | create_objects (type_indices::iterator, type_indices::iterator) override |
![]() | |
virtual | ~model_common_interface ()=default |
![]() | |
virtual | ~model_initiate_actions_interface ()=default |
![]() | |
virtual type_object_ref | getobject (type_index const &index) const =0 |
virtual type_class_info | getclass (type_index const &index) const =0 |
virtual QAbstractItemModel * | ReturnSourceModel () const =0 |
virtual | ~model_common_data_access_interface ()=default |
Additional Inherited Members | |
![]() | |
virtual void | remove_deleted_object (type_index const &index)=0 |
virtual void | rename_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual void | update_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual void | create_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual type_index | lookup (type_object_info const &)=0 |
QUuid | getuuid () const |
This class purpose is to provide a unified interface for performing actions on the database
It can be called directly from views linked to objects. In this current model the controller is actually implemented within the model. This is ok since we do not expects massive amount of user inputs that would need be handled in an asynchronous manner, and would require a controller to be linked to this model-view type interface.
Definition at line 202 of file model_common_interface.hpp.
|
inlineoverridevirtual |
Create a range of objects
param
Implements dbe::model_initiate_actions_interface.
Definition at line 227 of file model_common_operations.hpp.
|
overridevirtual |
Given a range of indices issue commands to delete the related objects
start | iterator of the range |
end | iterator of the range |
Implements dbe::model_initiate_actions_interface.
|
inlineoverridevirtual |
param
Implements dbe::model_initiate_actions_interface.
Definition at line 217 of file model_common_operations.hpp.