CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Processing
Controls
FlagControl.cxx
Go to the documentation of this file.
1
#include "
FlagControl.hxx
"
2
#include "
ProcessingFactory.hxx
"
3
4
5
6
namespace
CLAM
7
{
8
9
namespace
Hidden
10
{
11
static
const
char
*
metadata
[] = {
12
"key"
,
"FlagControl"
,
13
"category"
,
"Controls"
,
14
"description"
,
"FlagControl"
,
15
0
16
};
17
static
FactoryRegistrator<ProcessingFactory, FlagControl>
reg
=
metadata
;
18
}
19
20
void
FlagControlConfig::DefaultInit
(
void
)
21
{
22
AddAll();
23
UpdateData
();
24
SetName(
"FlagControl"
);
25
SetFlag(
false
);
26
}
27
28
FlagControl::FlagControl
()
29
: mFlagOutControl(
"Flag"
, this)
30
{
31
FlagControlConfig
cfg;
32
33
Configure
(cfg);
34
}
35
36
FlagControl::FlagControl
(
const
FlagControlConfig
& cfg)
37
: mFlagOutControl(
"Flag"
, this)
38
39
{
40
41
Configure
(cfg);
42
}
43
44
45
bool
FlagControl::Do
()
46
{
47
if
( !
AbleToExecute
() )
return
true
;
48
mFlagOutControl.
SendControl
(mConfig.GetFlag());
49
return
true
;
50
}
51
52
bool
FlagControl::ConcreteConfigure
(
const
ProcessingConfig
& c)
53
{
54
CopyAsConcreteConfig
(mConfig, c);
55
return
true
;
56
}
57
58
}
// namespace CLAM
59
Generated by
1.8.1