ICF 3.1.1.10
Technical documentation of ICF Libraries
TSyncProcessorWrap.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 iproc_TSyncProcessorWrap_included
7#define iproc_TSyncProcessorWrap_included
8
9
10// Qt includes
11#include <QtCore/QMap>
12
13// ICF includes
14#include <iprm/IParamsSet.h>
15#include <iproc/IProcessor.h>
16
17
18namespace iproc
19{
20
21
25template <class Base>
26class TSyncProcessorWrap: public Base
27{
28public:
29 typedef Base BaseClass;
30
32
33 // pseudo-reimplemented (iproc::IProcessor)
34 int GetProcessorState(const iprm::IParamsSet* paramsPtr) const override;
36 const iprm::IParamsSet* paramsPtr,
37 const istd::IPolymorphic* inputPtr,
38 const istd::IChangeable* outputPtr) const override;
39 void InitProcessor(const iprm::IParamsSet* paramsPtr, bool doReset) override;
40};
41
42
43// public methods
44
45template <class Base>
49
50
51// pseudo-reimplemented (iproc::IProcessor)
52
53template <class Base>
58
59
60template <class Base>
62 const iprm::IParamsSet* /*paramsPtr*/,
63 const istd::IPolymorphic* /*inputPtr*/,
64 const istd::IChangeable* /*outputPtr*/) const
65{
66 return true;
67}
68
69
70template <class Base>
71void TSyncProcessorWrap<Base>::InitProcessor(const iprm::IParamsSet* /*paramsPtr*/, bool /*doReset*/)
72{
73}
74
75
76// global typdefs
77
79
80
81} // namespace iproc
82
83
84#endif // !iproc_TSyncProcessorWrap_included
85
86
Set of general parameters.
Definition IParamsSet.h:29
@ PS_READY
Processor is initialized and ready.
Definition IProcessor.h:53
Wrapper of iproc::IProcessor for simple synchrone processor implementations.
void InitProcessor(const iprm::IParamsSet *paramsPtr, bool doReset) override
int GetProcessorState(const iprm::IParamsSet *paramsPtr) const override
bool AreParamsAccepted(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const override
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
This namespace containes interfaces and implementation of data processing concepts.
TSyncProcessorWrap< IProcessor > CSyncProcessorBase

© Witold Gantzke and Kirill Lepskiy