ACF $AcfVersion:0$
CListObserver.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
8
9
10namespace ibase
11{
12
13
19{
20public:
21 // reimplemented (imod::CSingleModelObserverBase)
22 virtual void OnUpdate(const istd::IChangeable::ChangeSet& changeSet) override;
23
24protected:
25 virtual void OnListReset() = 0;
26 virtual void OnBeforeElementRemoved(qsizetype index) = 0;
27 virtual void OnAfterElementAdded(qsizetype index) = 0;
28 virtual void OnAfterElementUpdated(qsizetype index) = 0;
29};
30
31
32} // namespace ibase
33
34
Base implementation for observing a list.
virtual void OnAfterElementAdded(qsizetype index)=0
virtual void OnListReset()=0
virtual void OnUpdate(const istd::IChangeable::ChangeSet &changeSet) override
Called on update of observed model.
virtual void OnBeforeElementRemoved(qsizetype index)=0
virtual void OnAfterElementUpdated(qsizetype index)=0
Basic implementation for a single model observer.
Set of change flags (its IDs).
Definition IChangeable.h:36
This namespace contains basic implementations of standard primitives on the component level.