]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/DynamicGroupCfg.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ADAPTATION__DYNAMIC_GROUP_CFG_H
10 #define SQUID_ADAPTATION__DYNAMIC_GROUP_CFG_H
12 #include "SquidString.h"
19 /// DynamicServiceGroup configuration to remember future dynamic chains
23 typedef std::vector
<String
> Store
;
27 Store services
; ///< services in the group
29 bool empty() const { return services
.empty(); } ///< no services added
31 /// configured service IDs in X-Next-Services value (comma-separated) format
32 const String
&serviceIds() const { return id
; }
34 void add(const String
&item
); ///< updates group id and services
35 void clear(); ///< makes the config empty
39 std::ostream
&operator <<(std::ostream
&os
, const DynamicGroupCfg
&cfg
)
44 } // namespace Adaptation
46 #endif /* SQUID_ADAPTATION__DYNAMIC_GROUP_CFG_H */