]> git.ipfire.org Git - thirdparty/squid.git/blame - src/mgr/ActionWriter.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / mgr / ActionWriter.h
CommitLineData
8822ebee 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
8822ebee 3 *
bbc27441
AJ
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.
8822ebee
AR
7 */
8
bbc27441
AJ
9/* DEBUG: section 16 Cache Manager API */
10
8822ebee
AR
11#ifndef SQUID_MGR_ACTION_WRITER_H
12#define SQUID_MGR_ACTION_WRITER_H
13
c3e8e4e9 14#include "comm/forward.h"
8822ebee
AR
15#include "mgr/StoreToCommWriter.h"
16
8822ebee
AR
17namespace Mgr
18{
19
20/// Creates Store entry, fills it using action's fillEntry(), and
21/// Comm-writes it using parent StoreToCommWriter.
22class ActionWriter: public StoreToCommWriter
23{
5c2f68b7
AJ
24 CBDATA_CLASS(ActionWriter);
25
8822ebee 26public:
c3e8e4e9 27 ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn);
8822ebee
AR
28
29protected:
30 /* AsyncJob API */
31 virtual void start();
32
33private:
34 Action::Pointer action; ///< action that fills the entry
8822ebee
AR
35};
36
37} // namespace Mgr
38
39#endif /* SQUID_MGR_ACTION_WRITER_H */
f53969cc 40