QueryParam.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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_QUERY_PARAM_H
12#define SQUID_MGR_QUERY_PARAM_H
13
14#include "base/RefCount.h"
15#include "ipc/forward.h"
16
17namespace Mgr
18{
19
21{
22public:
23 typedef enum {ptInt = 1, ptString} Type;
25
26public:
27 QueryParam(Type aType): type(aType) {}
28 ~QueryParam() override {}
29 virtual void pack(Ipc::TypedMsgHdr& msg) const = 0;
30 virtual void unpackValue(const Ipc::TypedMsgHdr& msg) = 0;
31
32private:
33 QueryParam(const QueryParam&); // not implemented
34 QueryParam& operator= (const QueryParam&); // not implemented
35
36public:
38};
39
40} // namespace Mgr
41
42#endif /* SQUID_MGR_QUERY_PARAM_H */
43
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
~QueryParam() override
Definition: QueryParam.h:28
QueryParam(const QueryParam &)
QueryParam & operator=(const QueryParam &)
RefCount< QueryParam > Pointer
Definition: QueryParam.h:24
virtual void pack(Ipc::TypedMsgHdr &msg) const =0
store parameter into msg
QueryParam(Type aType)
Definition: QueryParam.h:27
virtual void unpackValue(const Ipc::TypedMsgHdr &msg)=0
load parameter value from msg
Definition: cf_gen.cc:109
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors