IntParam.h
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#ifndef SQUID_MGR_INT_PARAM_H
12#define SQUID_MGR_INT_PARAM_H
13
14#include "ipc/forward.h"
15#include "mgr/forward.h"
16#include "mgr/QueryParam.h"
17#include <vector>
18
19namespace Mgr
20{
21
22class IntParam: public QueryParam
23{
24public:
25 IntParam();
26 IntParam(const std::vector<int>& anArray);
27 void pack(Ipc::TypedMsgHdr& msg) const override;
28 void unpackValue(const Ipc::TypedMsgHdr& msg) override;
29 const std::vector<int>& value() const;
30
31private:
32 std::vector<int> array;
33};
34
35} // namespace Mgr
36
37#endif /* SQUID_MGR_INT_PARAM_H */
38
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
std::vector< int > array
Definition: IntParam.h:32
void unpackValue(const Ipc::TypedMsgHdr &msg) override
load parameter value from msg
Definition: IntParam.cc:38
void pack(Ipc::TypedMsgHdr &msg) const override
store parameter into msg
Definition: IntParam.cc:28
const std::vector< int > & value() const
Definition: IntParam.cc:48
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors