-
Notifications
You must be signed in to change notification settings - Fork 22
/
InjectSelector.hpp
63 lines (51 loc) · 1.28 KB
/
InjectSelector.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef AVANGO_TOOLS_INJECTSELECTOR_HPP
#define AVANGO_TOOLS_INJECTSELECTOR_HPP
/**
* \file
* \ingroup av_tools
*/
#include <avango/tools/Selector.hpp>
#include <avango/tools/windows_specific_tools.hpp>
namespace av
{
namespace tools
{
/**
* InjectSelector class adds or replaces input target holders with given target holders,
* if the targets match.
*
* \ingroup av_tools
*/
class AV_TOOLS_DLL InjectSelector : public Selector
{
AV_FC_DECLARE();
public:
/**
* Constructor.
*/
InjectSelector();
protected:
/**
* Destructor made protected to prevent allocation on stack.
*/
virtual ~InjectSelector();
public:
/**
* Defines the input targets.
*/
MFTargetHolder Targets;
/**
* Defines target holder which replace or which are added to the input targets.
*/
MFTargetHolder InjectTargets;
/* virtual */ void evaluate();
};
using SFInjectSelector = SingleField<Link<InjectSelector>>;
using MFInjectSelector = MultiField<Link<InjectSelector>>;
} // namespace tools
#ifdef AV_INSTANTIATE_FIELD_TEMPLATES
template class AV_TOOLS_DLL SingleField<Link<tools::InjectSelector>>;
template class AV_TOOLS_DLL MultiField<Link<tools::InjectSelector>>;
#endif
} // namespace av
#endif // AVANGO_TOOLS_INJECTSELECTOR_HPP