/usr/include/CLAM/OutControlPublisher.hxx is in libclam-dev 1.4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef _OUTCONTROL_PUBLISHER_HXX_
#define _OUTCONTROL_PUBLISHER_HXX_
#include "InControl.hxx"
#include "OutControl.hxx"
#include <string>
// TODO: Refactoring...
// Extract common interface from OutControlPublisher, OutControl and create a common base class
namespace CLAM
{
class OutControlPublisher : public FloatOutControl
{
FloatOutControl* mPublished;
public:
OutControlPublisher()
: FloatOutControl( "OutControlPublisher", 0 )
{
mPublished=NULL;
}
OutControlPublisher( const std::string& name, Processing* father )
: FloatOutControl( name, father )
{
mPublished=NULL;
}
void PublishOutControl( FloatOutControl& out )
{
mPublished = &out;
}
void AddLink( InControlBase& in )
{
FloatOutControl::AddLink( in );
if(mPublished) mPublished->AddLink( in );
}
};
} // namespace CLAM
#endif
|