ActionProfile.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
17 namespace Mgr
18 {
19 
22 {
23 public:
25 
26 public:
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 
33 public:
34  const char *name;
35  const char *desc;
36  bool isPwReq;
37  bool isAtomic;
39 };
40 
41 } // namespace Mgr
42 
43 inline std::ostream &
44 operator <<(std::ostream &os, const Mgr::ActionProfile &profile)
45 {
46  return os << profile.name;
47 }
48 
49 #endif /* SQUID_MGR_ACTION_PROFILE_H */
50 
ActionProfile(const char *aName, const char *aDesc, bool aPwReq, bool anAtomic, const ActionCreatorPointer &aCreator)
Definition: ActionProfile.h:27
ActionCreatorPointer creator
creates Action objects with this profile
Definition: ActionProfile.h:38
std::ostream & operator<<(std::ostream &os, const Mgr::ActionProfile &profile)
Definition: ActionProfile.h:44
hard-coded Cache Manager action configuration, including Action creator
Definition: ActionProfile.h:21
bool isAtomic
whether action dumps everything in one dump() call
Definition: ActionProfile.h:37
RefCount< ActionProfile > Pointer
Definition: ActionProfile.h:24
const char * desc
action description to build an action menu list
Definition: ActionProfile.h:35
bool isPwReq
whether password is required to perform the action
Definition: ActionProfile.h:36
const char * name
action label to uniquely identify this action
Definition: ActionProfile.h:34

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors