CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Flow
Controls
OutControlPublisher.hxx
Go to the documentation of this file.
1
#ifndef _OUTCONTROL_PUBLISHER_HXX_
2
#define _OUTCONTROL_PUBLISHER_HXX_
3
4
#include "
InControl.hxx
"
5
#include "
OutControl.hxx
"
6
#include <string>
7
8
// TODO: Refactoring...
9
// Extract common interface from OutControlPublisher, OutControl and create a common base class
10
11
namespace
CLAM
12
{
13
class
OutControlPublisher
:
public
FloatOutControl
14
{
15
FloatOutControl
* mPublished;
16
17
public
:
18
OutControlPublisher
()
19
:
FloatOutControl
(
"OutControlPublisher"
, 0 )
20
{
21
mPublished=
NULL
;
22
}
23
24
OutControlPublisher
(
const
std::string& name,
Processing
* father )
25
:
FloatOutControl
( name, father )
26
{
27
mPublished=
NULL
;
28
}
29
30
void
PublishOutControl
(
FloatOutControl
& out )
31
{
32
mPublished = &out;
33
}
34
35
void
AddLink
(
InControlBase
& in )
36
{
37
FloatOutControl::AddLink
( in );
38
if
(mPublished) mPublished->
AddLink
( in );
39
}
40
};
41
42
}
// namespace CLAM
43
44
#endif
45
Generated by
1.8.1