ActionProfile.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_ACTION_PROFILE_H
12#define SQUID_MGR_ACTION_PROFILE_H
13
14#include "mgr/ActionCreator.h"
15#include "mgr/forward.h"
16
17namespace Mgr
18{
19
22{
23public:
25
26public:
27 ActionProfile(const char* aName, const char* aDesc, bool aPwReq,
28 bool anAtomic, const ActionCreatorPointer &aCreator):
29 name(aName), desc(aDesc), isPwReq(aPwReq), isAtomic(anAtomic),
30 creator(aCreator) {
31 }
32
33public:
34 const char *name;
35 const char *desc;
36 bool isPwReq;
37 bool isAtomic;
39};
40
41inline std::ostream &
42operator <<(std::ostream &os, const ActionProfile &profile)
43{
44 return os << profile.name;
45}
46
47} // namespace Mgr
48
49#endif /* SQUID_MGR_ACTION_PROFILE_H */
50
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
hard-coded Cache Manager action configuration, including Action creator
Definition: ActionProfile.h:22
bool isAtomic
whether action dumps everything in one dump() call
Definition: ActionProfile.h:37
bool isPwReq
whether password is required to perform the action
Definition: ActionProfile.h:36
ActionCreatorPointer creator
creates Action objects with this profile
Definition: ActionProfile.h:38
const char * name
action label to uniquely identify this action
Definition: ActionProfile.h:34
const char * desc
action description to build an action menu list
Definition: ActionProfile.h:35
RefCount< ActionProfile > Pointer
Definition: ActionProfile.h:24
ActionProfile(const char *aName, const char *aDesc, bool aPwReq, bool anAtomic, const ActionCreatorPointer &aCreator)
Definition: ActionProfile.h:27
Cache Manager API.
Definition: Action.h:20
std::ostream & operator<<(std::ostream &os, const ActionProfile &profile)
Definition: ActionProfile.h:42

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors