rippled
Loading...
Searching...
No Matches
Hook.h
1#ifndef BEAST_INSIGHT_HOOK_H_INCLUDED
2#define BEAST_INSIGHT_HOOK_H_INCLUDED
3
4#include <xrpl/beast/insight/HookImpl.h>
5
6#include <memory>
7
8namespace beast {
9namespace insight {
10
12class Hook final
13{
14public:
19 {
20 }
21
28 {
29 }
30
32 impl() const
33 {
34 return m_impl;
35 }
36
37private:
39};
40
41} // namespace insight
42} // namespace beast
43
44#endif
A reference to a handler for performing polled collection.
Definition Hook.h:13
std::shared_ptr< HookImpl > const & impl() const
Definition Hook.h:32
Hook()
Create a null hook.
Definition Hook.h:18
Hook(std::shared_ptr< HookImpl > const &impl)
Create a hook referencing the specified implementation.
Definition Hook.h:27
std::shared_ptr< HookImpl > m_impl
Definition Hook.h:38