-
Notifications
You must be signed in to change notification settings - Fork 22
/
ChangeSelector.hpp
71 lines (57 loc) · 1.53 KB
/
ChangeSelector.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
64
65
66
67
68
69
70
71
#ifndef AVANGO_TOOLS_CHANGESELECTOR_HPP
#define AVANGO_TOOLS_CHANGESELECTOR_HPP
/**
* \file
* \ingroup av_tools
*/
#include <avango/tools/Selector.hpp>
#include <avango/tools/windows_specific_tools.hpp>
namespace av
{
namespace tools
{
/**
* ChangeSelector class passes targets which were added since the last evaluate
* and additional outputs removed targets.
*
* \ingroup av_tools
*/
class AV_TOOLS_DLL ChangeSelector : public Selector
{
AV_FC_DECLARE();
public:
/**
* Constructor.
*/
ChangeSelector();
protected:
/**
* Destructor made protected to prevent allocation on stack.
*/
virtual ~ChangeSelector();
public:
/**
* Defines the input targets whose added targets are passed to SelectedTargets.
*/
MFTargetHolder Targets;
/**
* Outputs the targets which were removed from Targets since the last evaluate.
*/
MFTargetHolder KeptTargets;
/**
* Outputs the targets which were removed from Targets since the last evaluate.
*/
MFTargetHolder RemovedTargets;
/* virtual */ void evaluate();
protected:
MFTargetHolder::ContainerType mLastTargets;
};
using SFChangeSelector = SingleField<Link<ChangeSelector>>;
using MFChangeSelector = MultiField<Link<ChangeSelector>>;
} // namespace tools
#ifdef AV_INSTANTIATE_FIELD_TEMPLATES
template class AV_TOOLS_DLL SingleField<Link<tools::ChangeSelector>>;
template class AV_TOOLS_DLL MultiField<Link<tools::ChangeSelector>>;
#endif
} // namespace av
#endif // AVANGO_TOOLS_CHANGESELECTOR_HPP