]> git.ipfire.org Git - thirdparty/squid.git/blame - src/mgr/StringParam.cc
Remove unnecessary stub_tools dependency on String
[thirdparty/squid.git] / src / mgr / StringParam.cc
CommitLineData
b8151fa1
CT
1/*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8#include "config.h"
9#include "ipc/TypedMsgHdr.h"
10#include "mgr/StringParam.h"
11
12
13Mgr::StringParam::StringParam():
10c40d99 14 QueryParam(QueryParam::ptString), str()
b8151fa1
CT
15{
16}
17
18Mgr::StringParam::StringParam(const String& aString):
10c40d99 19 QueryParam(QueryParam::ptString), str(aString)
b8151fa1
CT
20{
21}
22
23void
24Mgr::StringParam::pack(Ipc::TypedMsgHdr& msg) const
25{
26 msg.putPod(type);
27 msg.putString(str);
28}
29
30void
31Mgr::StringParam::unpackValue(const Ipc::TypedMsgHdr& msg)
32{
33 msg.getString(str);
34}
35
36const String&
37Mgr::StringParam::value() const
38{
39 return str;
40}