CLAM-Development  1.4.0
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 
21 {
22  AddAll();
23  UpdateData();
24  SetName("FlagControl");
25  SetFlag(false);
26 }
27 
29  : mFlagOutControl("Flag", this)
30 {
32 
33  Configure(cfg);
34 }
35 
37  : mFlagOutControl("Flag", this)
38 
39 {
40 
41  Configure(cfg);
42 }
43 
44 
46 {
47  if( !AbleToExecute() ) return true;
48  mFlagOutControl.SendControl(mConfig.GetFlag());
49  return true;
50 }
51 
53 {
54  CopyAsConcreteConfig(mConfig, c);
55  return true;
56 }
57 
58 } // namespace CLAM
59