]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/QueryParam.h
4 * DEBUG: section 16 Cache Manager API
8 #ifndef SQUID_MGR_QUERY_PARAM_H
9 #define SQUID_MGR_QUERY_PARAM_H
11 #include "ipc/forward.h"
18 class QueryParam
: public RefCountable
21 typedef enum {ptInt
= 1, ptString
} Type
;
22 typedef RefCount
<QueryParam
> Pointer
;
25 QueryParam(Type aType
): type(aType
) {}
26 virtual ~QueryParam() {}
27 virtual void pack(Ipc::TypedMsgHdr
& msg
) const = 0; ///< store parameter into msg
28 virtual void unpackValue(const Ipc::TypedMsgHdr
& msg
) = 0; ///< load parameter value from msg
31 QueryParam(const QueryParam
&); // not implemented
32 QueryParam
& operator= (const QueryParam
&); // not implemented
40 #endif /* SQUID_MGR_QUERY_PARAM_H */