Fast RTPS  Version 2.4.0
Fast RTPS
StringMatching.h
1 // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
20 #ifndef STRINGMATCHING_H_
21 #define STRINGMATCHING_H_
22 #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
23 namespace eprosima {
24 namespace fastrtps {
25 namespace rtps {
32 {
33 public:
34 
36  virtual ~StringMatching();
40  static bool matchString(
41  const char* input1,
42  const char* input2);
43 
47  static bool matchPattern(
48  const char* pattern,
49  const char* input);
50 };
51 } // namespace rtps
52 } /* namespace rtps */
53 } /* namespace eprosima */
54 #endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
55 #endif /* STRINGMATCHING_H_ */
Class StringMatching used to match different strings against each other as defined by the POSIX fnmat...
Definition: StringMatching.h:32
static bool matchPattern(const char *pattern, const char *input)
Static method to match a string to a pattern.
static bool matchString(const char *input1, const char *input2)
Static method to match two strings.
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23