ISupplier.h
Go to the documentation of this file.
1 #ifndef iproc_ISupplier_included
2 #define iproc_ISupplier_included
3 
4 
5 // ACF includes
6 #include "istd/IChangeable.h"
8 #include "iprm/IParamsSet.h"
9 
10 
11 namespace iproc
12 {
13 
14 
22 class ISupplier: virtual public istd::IChangeable
23 {
24 public:
26  {
55  };
56 
58  {
63  };
64 
66  {
69  };
70 
76  virtual int GetWorkStatus() const = 0;
77 
83  virtual void InvalidateSupplier() = 0;
84 
89  virtual void EnsureWorkInitialized() = 0;
90 
94  virtual void EnsureWorkFinished() = 0;
95 
100  virtual void ClearWorkResults() = 0;
101 
108  virtual const ilog::IMessageContainer* GetWorkMessages(int messageType) const = 0;
109 
115  virtual iprm::IParamsSet* GetModelParametersSet() const = 0;
116 };
117 
118 
119 } // namespace iproc
120 
121 
122 #endif // !iproc_ISupplier_included
123 
124 
virtual void EnsureWorkFinished()=0
Ensure that all objects are produced.
virtual void EnsureWorkInitialized()=0
Force the supplier to initialize its work.
Work cannot be done.
Definition: ISupplier.h:54
Work was canceled.
Definition: ISupplier.h:46
virtual void InvalidateSupplier()=0
Called to signalize that this supplier is invalid.
Supplier is invalidated and will produce new result on demand.
Definition: ISupplier.h:30
Work was done correctly and no error occure.
Definition: ISupplier.h:42
virtual int GetWorkStatus() const =0
Get status of last work.
virtual const ilog::IMessageContainer * GetWorkMessages(int messageType) const =0
Get messages outputted by this work.
virtual iprm::IParamsSet * GetModelParametersSet() const =0
Get parameter set using by this supplier.
Supplier is locked becouse it is doing processing step.
Definition: ISupplier.h:38
Base interface for suppliers providing synchrone processing of single object with "pull data" model...
Definition: ISupplier.h:22
Work was done, but there were errors.
Definition: ISupplier.h:50
virtual void ClearWorkResults()=0
Remove all stored work results.
New work is initialized.
Definition: ISupplier.h:34
Supplier result changed.
Definition: ISupplier.h:62

© 2007-2011 Witold Gantzke and Kirill Lepskiy