This file is indexed.

/usr/include/Poco/Redis/RedisEventArgs.h is in libpoco-dev 1.8.0.1-1ubuntu4.

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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//
// RedisEventArgs.h
//
// Library: Redis
// Package: Redis
// Module:  RedisEventArgs
//
// Definition of the RedisEventArgs class.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#ifndef Redis_RedisEventArgs_INCLUDED
#define Redis_RedisEventArgs_INCLUDED


#include "Poco/Redis/Type.h"


namespace Poco {
namespace Redis {


class Redis_API RedisEventArgs
	/// Event arguments for AsyncReader events.
{
public:
	RedisEventArgs(RedisType::Ptr message);
		/// Creates the RedisEventArgs from the given message.

	RedisEventArgs(Exception* e);
		/// Creates the RedisEventArgs from the given Redis Exception.

	~RedisEventArgs();
		/// Destroys the RedisEventArgs.

	RedisType::Ptr message() const;
		/// Returns the message retrieved from the Redis server.
		/// This can be a NULL pointer when this event is about an exception.

	const Exception* exception() const;
		/// Returns the exception if any, otherwise it returns null pointer.

	void stop();
		/// When called, the AsyncReader will stop.
		///
		/// Note: The AsyncReader will always stop when this is an exception
		/// event. Use this for example for pub/sub when there are no
		/// subcribers anymore.

	bool isStopped() const;
		/// Returns true when the AsyncReader will stop.

private:
	RedisType::Ptr _message;

	Exception* _exception;

	bool _stop;
};


//
// inlines
//


inline RedisType::Ptr RedisEventArgs::message() const
{
	return _message;
}


inline const Exception* RedisEventArgs::exception() const
{
	return _exception;
}


inline bool RedisEventArgs::isStopped() const
{
	return _stop;
}


inline void RedisEventArgs::stop()
{
	_stop = true;
}


} } // namespace Poco::Redis


#endif // Redis_RedisEventArgs_INCLUDED