]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/DynamicGroupCfg.h
4a14c60c069561ae8ab4482699fef688f6434857
2 * Copyright (C) 1996-2017 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
30 void add(const String
&item
); ///< updates group id and services
31 void clear(); ///< makes the config empty
35 std::ostream
&operator <<(std::ostream
&os
, const DynamicGroupCfg
&cfg
)
40 } // namespace Adaptation
42 #endif /* SQUID_ADAPTATION__DYNAMIC_GROUP_CFG_H */