DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::model_common_impl< T > Class Template Reference

#include <model_common_interface.hpp>

Inheritance diagram for dbe::model_common_impl< T >:
[legend]
Collaboration diagram for dbe::model_common_impl< T >:
[legend]

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
 
- Public Member Functions inherited from dbe::model_common_interface
virtual ~model_common_interface ()=default
 
- Public Member Functions inherited from dbe::model_initiate_actions_interface
virtual ~model_initiate_actions_interface ()=default
 
- Public Member Functions inherited from dbe::model_common_data_access_interface
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

- Protected Member Functions inherited from dbe::model_common_interface
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
 

Detailed Description

template<typename T>
class dbe::model_common_impl< T >

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.

Member Function Documentation

◆ create_objects()

template<typename T >
bool dbe::model_common_impl< T >::create_objects ( type_indices::iterator b,
type_indices::iterator e )
inlineoverridevirtual

Create a range of objects

Parameters

param

Returns

Implements dbe::model_initiate_actions_interface.

Definition at line 227 of file model_common_operations.hpp.

229{
230 Q_UNUSED ( b );
231 Q_UNUSED ( e );
232 return false;
233}

◆ delete_objects()

template<typename T >
bool dbe::model_common_impl< T >::delete_objects ( type_indices::iterator ,
type_indices::iterator  )
overridevirtual

Given a range of indices issue commands to delete the related objects

Parameters
startiterator of the range
enditerator of the range
Returns
false in case of error

Implements dbe::model_initiate_actions_interface.

◆ update_objects()

template<typename T >
bool dbe::model_common_impl< T >::update_objects ( type_indices::iterator b,
type_indices::iterator e )
inlineoverridevirtual
Parameters

param

Returns

Implements dbe::model_initiate_actions_interface.

Definition at line 217 of file model_common_operations.hpp.

219{
220 Q_UNUSED ( b );
221 Q_UNUSED ( e );
222 return false;
223}

The documentation for this class was generated from the following files: