Hazelcast C++ Client
Hazelcast C++ Client Library
config_pattern_matcher.h
1 /*
2  * Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <string>
19 #include <vector>
20 #include <memory>
21 
22 #include "hazelcast/util/export.h"
23 
24 namespace hazelcast {
25 namespace client {
26 namespace config {
39 class HAZELCAST_API config_pattern_matcher
40 {
41 public:
52  virtual std::shared_ptr<std::string> matches(
53  const std::vector<std::string>& config_patterns,
54  const std::string& item_name) const = 0;
55 };
56 } // namespace config
57 } // namespace client
58 } // namespace hazelcast
The ConfigPatternMatcher provides a strategy to match an item name to a configuration pattern.
virtual std::shared_ptr< std::string > matches(const std::vector< std::string > &config_patterns, const std::string &item_name) const =0
Returns the best match for an item name out of a list of configuration patterns.