9#ifndef SQUID_SRC_CONFIGOPTION_H
10#define SQUID_SRC_CONFIGOPTION_H
39 static void Print(std::ostream &,
const T &);
84 bool parse(
char const *option,
const char *value,
int isaReconf)
override {
86 return (
object.*
parser)(option, value, isaReconf);
ConfigOptionAdapter(C &theObject, bool(C::*parseFP)(char const *option, const char *value, int reconfiguring), void(C::*dumpFP)(StoreEntry *e) const)
void dump(StoreEntry *e) const override
bool(C::* parser)(char const *option, const char *value, int reconfiguring)
bool parse(char const *option, const char *value, int isaReconf) override
void(C::* dumper)(StoreEntry *e) const
~ConfigOptionVector() override
std::vector< ConfigOption * > options
bool parse(char const *option, const char *value, int reconfiguring) override
void dump(StoreEntry *e) const override
virtual void dump(StoreEntry *e) const =0
virtual bool parse(char const *option, const char *value, int reconfiguring)=0
static void Free(T)
destroys Parse() result
static T Parse(ConfigParser &)
creates a new T instance using the given parser; never returns nil
static void Print(std::ostream &, const T &)
reports the current T instance configuration in squid.conf format