ISupplier.h
Go to the documentation of this file.
1 #ifndef iinsp_ISupplier_included
2 #define iinsp_ISupplier_included
3 
4 
5 // ACF includes
6 #include <istd/IChangeable.h>
7 #include <imod/IModel.h>
9 #include <iprm/IParamsSet.h>
10 
11 
12 namespace iinsp
13 {
14 
15 
22 class ISupplier: virtual public istd::IChangeable
23 {
24 public:
26  {
51  };
52 
57  {
61  CF_SUPPLIER_RESULTS = 0x6326415
62  };
63 
65  {
69  };
70 
77  virtual int GetWorkStatus() const = 0;
78 
82  virtual imod::IModel* GetWorkStatusModel() const = 0;
83 
89  virtual void InvalidateSupplier() = 0;
90 
95  virtual void EnsureWorkInitialized() = 0;
96 
100  virtual void EnsureWorkFinished() = 0;
101 
106  virtual void ClearWorkResults() = 0;
107 
114  virtual const ilog::IMessageContainer* GetWorkMessages(int containerType) const = 0;
115 
121  virtual iprm::IParamsSet* GetModelParametersSet() const = 0;
122 };
123 
124 
125 } // namespace iinsp
126 
127 
128 #endif // !iinsp_ISupplier_included
129 
130 
Supplier is locked becouse it is doing processing step.
Definition: ISupplier.h:38
Work was done correctly and no error occure.
Definition: ISupplier.h:42
New work is initialized and will produce new result on demand.
Definition: ISupplier.h:34
ChangeFlags
Data model change notification flags.
Definition: ISupplier.h:56
virtual void EnsureWorkFinished()=0
Ensure that all objects are produced.
Supplier result changed.
Definition: ISupplier.h:61
virtual void ClearWorkResults()=0
Remove all stored work results.
virtual int GetWorkStatus() const =0
Get status of last work.
Work couldn't be done.
Definition: ISupplier.h:50
Work was canceled.
Definition: ISupplier.h:46
virtual const ilog::IMessageContainer * GetWorkMessages(int containerType) const =0
Get messages outputted by this work.
virtual iprm::IParamsSet * GetModelParametersSet() const =0
Get parameter set using by this supplier.
virtual void InvalidateSupplier()=0
Called to signalize that this supplier is invalid.
Base interface for suppliers providing calculating of objects on demand ("pull data" model)...
Definition: ISupplier.h:22
virtual void EnsureWorkInitialized()=0
Force the supplier to initialize its work.
Supplier is invalidated, no result is produced.
Definition: ISupplier.h:30
virtual imod::IModel * GetWorkStatusModel() const =0
Get access to the status model of the supplier.

© 2007-2017 Witold Gantzke and Kirill Lepskiy