DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::model_common_interface Class Referenceabstract

#include <model_common_interface.hpp>

Inheritance diagram for dbe::model_common_interface:
[legend]
Collaboration diagram for dbe::model_common_interface:
[legend]

Public Member Functions

virtual ~model_common_interface ()=default
 
- Public Member Functions inherited from dbe::model_initiate_actions_interface
virtual ~model_initiate_actions_interface ()=default
 
virtual bool delete_objects (type_indices::iterator, type_indices::iterator)=0
 
virtual bool update_objects (type_indices::iterator, type_indices::iterator)=0
 
virtual bool create_objects (type_indices::iterator, type_indices::iterator)=0
 
- 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
 

Protected Member Functions

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
 

Friends

class model_common_slots
 

Additional Inherited Members

- Private Member Functions inherited from dbe::model_common_slots
virtual ~model_common_slots ()=default
 

Detailed Description

Abstract class of the interface shared across table and tree models

Definition at line 133 of file model_common_interface.hpp.

Constructor & Destructor Documentation

◆ ~model_common_interface()

virtual dbe::model_common_interface::~model_common_interface ( )
virtualdefault

Member Function Documentation

◆ create_contained_object()

virtual void dbe::model_common_interface::create_contained_object ( type_index const & index,
type_object_info const & obj )
protectedpure virtual

Cause model to create information about a new object that should be included in this object

Parameters
indexwhere the new object should be included
objis the information reference to the new object

◆ getuuid()

QUuid dbe::model_common_interface::getuuid ( ) const
protected

◆ lookup()

virtual type_index dbe::model_common_interface::lookup ( type_object_info const & )
protectedpure virtual

Lookup an object and retrieve its matching model index

Parameters
theobject description to be removed
Returns
the model index linked to a matching configobject

◆ remove_deleted_object()

virtual void dbe::model_common_interface::remove_deleted_object ( type_index const & index)
protectedpure virtual

Remove model information related to an object deleted from the database

Parameters
isthe index of the object that needs to be removed

◆ rename_contained_object()

virtual void dbe::model_common_interface::rename_contained_object ( type_index const & index,
type_object_info const & obj )
protectedpure virtual

Cause model information related to a specific object to be updated after an object has been renamed in the database .

Parameters
indexis the current index of the object to be renamed
objis the object information reference which permits to retrieve the new name

◆ update_contained_object()

virtual void dbe::model_common_interface::update_contained_object ( type_index const & index,
type_object_info const & obj )
protectedpure virtual

Cause model to update information about an object in the given index

Parameters
indexis the current index of the object in the model
objis the information reference to the object that contains the updated information

Friends And Related Symbol Documentation

◆ model_common_slots

friend class model_common_slots
friend

Definition at line 140 of file model_common_interface.hpp.


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