]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / mgr / ActionWriter.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 16 Cache Manager API */
10
11 #ifndef SQUID_MGR_ACTION_WRITER_H
12 #define SQUID_MGR_ACTION_WRITER_H
13
14 #include "comm/forward.h"
15 #include "mgr/StoreToCommWriter.h"
16
17 namespace Mgr
18 {
19
20 /// Creates Store entry, fills it using action's fillEntry(), and
21 /// Comm-writes it using parent StoreToCommWriter.
22 class ActionWriter: public StoreToCommWriter
23 {
24 CBDATA_CLASS(ActionWriter);
25
26 public:
27 ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn);
28
29 protected:
30 /* AsyncJob API */
31 virtual void start();
32
33 private:
34 Action::Pointer action; ///< action that fills the entry
35 };
36
37 } // namespace Mgr
38
39 #endif /* SQUID_MGR_ACTION_WRITER_H */
40