StringParam.cc
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#include "squid.h"
12#include "ipc/TypedMsgHdr.h"
13#include "mgr/StringParam.h"
14
16 QueryParam(QueryParam::ptString), str()
17{
18}
19
21 QueryParam(QueryParam::ptString), str(aString)
22{
23}
24
25void
27{
28 msg.putPod(type);
29 msg.putString(str);
30}
31
32void
34{
35 msg.getString(str);
36}
37
38const String&
40{
41 return str;
42}
43
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
void putString(const String &s)
store variable-length string
Definition: TypedMsgHdr.cc:143
void getString(String &s) const
load variable-length string
Definition: TypedMsgHdr.cc:125
void putPod(const Pod &pod)
store POD
Definition: TypedMsgHdr.h:126
void pack(Ipc::TypedMsgHdr &msg) const override
store parameter into msg
Definition: StringParam.cc:26
const String & value() const
Definition: StringParam.cc:39
void unpackValue(const Ipc::TypedMsgHdr &msg) override
load parameter value from msg
Definition: StringParam.cc:33

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors