Config.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 93 eCAP Interface */
10 
11 #ifndef SQUID_SRC_ADAPTATION_ECAP_CONFIG_H
12 #define SQUID_SRC_ADAPTATION_ECAP_CONFIG_H
13 
14 #include "adaptation/Config.h"
16 #include <list>
17 #include <utility>
18 
19 namespace Adaptation
20 {
21 namespace Ecap
22 {
23 
26 {
27 public:
28  // Adaptation::ServiceConfig API
29  bool grokExtension(const char *name, const char *value) override;
30 
31 public:
32  typedef std::pair<std::string, std::string> Extension; // name=value in cfg
33  typedef std::list<Extension> Extensions;
35 };
36 
39 {
40 
41 public:
42  Config();
43  ~Config() override;
44 
45  bool finalize() override;
46 
47 protected:
49 
50 private:
51  Config(const Config &); // not implemented
52  Config &operator =(const Config &); // not implemented
53 
55 };
56 
57 extern Config TheConfig;
58 
59 } // namespace Ecap
60 } // namespace Adaptation
61 
62 #endif /* SQUID_SRC_ADAPTATION_ECAP_CONFIG_H */
63 
bool finalize() override
Definition: Config.cc:27
Config & operator=(const Config &)
std::list< Extension > Extensions
Definition: Config.h:33
Adaptation::ServiceConfig * newServiceConfig() const override
creates service configuration object that will parse and keep cfg info
Definition: Config.cc:37
General eCAP configuration.
Definition: Config.h:38
eCAP service configuration
Definition: Config.h:25
Config TheConfig
Definition: Config.cc:16
std::pair< std::string, std::string > Extension
Definition: Config.h:32
Adaptation::ServicePointer createService(const ServiceConfigPointer &cfg) override
Definition: Config.cc:43
bool grokExtension(const char *name, const char *value) override
handle name=value configuration option with name unknown to Squid
Definition: Config.cc:51
~Config() override
Definition: Config.cc:22

 

Introduction

Documentation

Support

Miscellaneous