]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/QueryParam.h
2 * DEBUG: section 16 Cache Manager API
6 #ifndef SQUID_MGR_QUERY_PARAM_H
7 #define SQUID_MGR_QUERY_PARAM_H
9 #include "base/RefCount.h"
10 #include "ipc/forward.h"
15 class QueryParam
: public RefCountable
18 typedef enum {ptInt
= 1, ptString
} Type
;
19 typedef RefCount
<QueryParam
> Pointer
;
22 QueryParam(Type aType
): type(aType
) {}
23 virtual ~QueryParam() {}
24 virtual void pack(Ipc::TypedMsgHdr
& msg
) const = 0; ///< store parameter into msg
25 virtual void unpackValue(const Ipc::TypedMsgHdr
& msg
) = 0; ///< load parameter value from msg
28 QueryParam(const QueryParam
&); // not implemented
29 QueryParam
& operator= (const QueryParam
&); // not implemented
37 #endif /* SQUID_MGR_QUERY_PARAM_H */