]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/QueryParam.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 16 Cache Manager API */
11 #ifndef SQUID_MGR_QUERY_PARAM_H
12 #define SQUID_MGR_QUERY_PARAM_H
14 #include "base/RefCount.h"
15 #include "ipc/forward.h"
20 class QueryParam
: public RefCountable
23 typedef enum {ptInt
= 1, ptString
} Type
;
24 typedef RefCount
<QueryParam
> Pointer
;
27 QueryParam(Type aType
): type(aType
) {}
28 virtual ~QueryParam() {}
29 virtual void pack(Ipc::TypedMsgHdr
& msg
) const = 0; ///< store parameter into msg
30 virtual void unpackValue(const Ipc::TypedMsgHdr
& msg
) = 0; ///< load parameter value from msg
33 QueryParam(const QueryParam
&); // not implemented
34 QueryParam
& operator= (const QueryParam
&); // not implemented
42 #endif /* SQUID_MGR_QUERY_PARAM_H */