ICF 3.1.1.10
Technical documentation of ICF Libraries
IEnableableSupplier.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iinsp_IEnableableSupplier_included
7#define iinsp_IEnableableSupplier_included
8
9
10// ICF includes
11#include <iinsp/ISupplier.h>
12
13
14namespace iinsp
15{
16
17
21class IEnableableSupplier: virtual public ISupplier
22{
23public:
28 {
32 CF_SUPPLIER_ACTIVATION = 0x6326416
33 };
34
40 virtual bool SetSupplierEnabled(bool isEnabled = true) = 0;
41
45 virtual bool IsSupplierEnabled() const = 0;
46
50 virtual bool IsStateFixed() const = 0;
51};
52
53
54} // namespace iinsp
55
56
57#endif // !iinsp_IEnableableSupplier_included
58
59
Extension of ISupplier interface with possiblity to activate/deactivate supplier's producing logic.
virtual bool IsSupplierEnabled() const =0
Get activation state of the supplier.
ChangeFlags
Data model change notification flags.
@ CF_SUPPLIER_ACTIVATION
Supplier's activation state was changed.
virtual bool SetSupplierEnabled(bool isEnabled=true)=0
Set supplier's activation state.
virtual bool IsStateFixed() const =0
Get true if the state of the supplier is fixed and cannot be changed.
Base interface for suppliers providing calculating of objects on demand ("pull data" model).
Definition ISupplier.h:28
Library containing inspection related classes and components.

© Witold Gantzke and Kirill Lepskiy