This file is indexed.

/usr/include/CLAM/qtmonitors/BoolControlPrinter.hxx is in libclam-qtmonitors-dev 1.4.0-3.1.

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
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
72
73
74
75
76
77
78
79
80
#ifndef BoolControlPrinter_hxx
#define BoolControlPrinter_hxx

#include <CLAM/Processing.hxx>
#include <CLAM/InControl.hxx>


class BoolControlPrinter : public CLAM::Processing
{
public:
	class Config : public CLAM::ProcessingConfig
	{
	public:
		DYNAMIC_TYPE_USING_INTERFACE (Config, 1, ProcessingConfig);
		DYN_ATTRIBUTE (0, public, unsigned, NInputs );
		void DefaultInit(void)
		{
			AddAll();
			UpdateData();
			SetNInputs(1);
		}
	};
private:
	typedef CLAM::InControl<bool> BoolControl;
	typedef std::vector<BoolControl*> BoolControls;
	BoolControls _inputs;
	Config _config;
public:
	BoolControlPrinter(const Config & c=Config())
	{
		Configure(c);
	}
	const CLAM::ProcessingConfig & GetConfig() const { return _config; }
	bool ConcreteConfigure(const CLAM::ProcessingConfig & config)
	{
		CopyAsConcreteConfig(_config, config);
		if (not _config.HasNInputs())
		{
			_config.AddNInputs();
			_config.UpdateData();
			_config.SetNInputs(1);
		}
		unsigned nInputs = _config.GetNInputs();
		ResizeControls(nInputs);
		for (unsigned i=0; i<nInputs; i++)
			_inputs[i]->DoControl(0);
		return true;
	}
	~BoolControlPrinter()
	{
		ResizeControls(0);
	}
	const char * GetClassName() const { return "BoolControlPrinter"; }
	void ControlCallback(unsigned i, const bool & value)
	{
	}
	bool Do()
	{
		return true;
	}
private:
	void ResizeControls(unsigned newSize)
	{
		unsigned previousSize = _inputs.size();
		for (unsigned i=newSize; i<previousSize; i++)
			delete _inputs[i];
		_inputs.resize(newSize);
		for (unsigned i=previousSize; i<newSize; i++)
		{
			std::ostringstream os;
			os << i+1;
			_inputs[i]= new BoolControl(i,os.str(),this,&BoolControlPrinter::ControlCallback);
		}
	}
};




#endif//BoolControlPrinter_hxx