ConfigOption.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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 03 Configuration File Parsing */
10
11#include "squid.h"
12#include "ConfigOption.h"
13
15{
16 while (!options.empty()) {
17 delete options.back();
18 options.pop_back();
19 }
20}
21
22bool
23ConfigOptionVector::parse(char const *option, const char *value, int isaReconfig)
24{
25 std::vector<ConfigOption *>::iterator i = options.begin();
26
27 while (i != options.end()) {
28 if ((*i)->parse(option,value, isaReconfig))
29 return true;
30
31 ++i;
32 }
33
34 return false;
35}
36
37void
39{
40 for (std::vector<ConfigOption *>::const_iterator i = options.begin();
41 i != options.end(); ++i)
42 (*i)->dump(e);
43}
44
virtual bool parse(char const *option, const char *value, int reconfiguring)
Definition: ConfigOption.cc:23
std::vector< ConfigOption * > options
Definition: ConfigOption.h:74
virtual ~ConfigOptionVector()
Definition: ConfigOption.cc:14
virtual void dump(StoreEntry *e) const
Definition: ConfigOption.cc:38

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors