Fast RTPS  Version 2.5.1
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 
23 #include <fastrtps/fastrtps_dll.h>
24 
25 #include <string>
26 #include <vector>
27 #include <stdint.h>
28 
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
30 namespace eprosima {
31 namespace fastrtps {
32 namespace rtps {
38 class RTPS_DllAPI StringMatching
39 {
40 public:
41 
43 
44  virtual ~StringMatching();
45 
49  static bool matchString(
50  const char* input1,
51  const char* input2);
52 
56  static bool matchPattern(
57  const char* pattern,
58  const char* input);
59 };
60 
61 } // namespace rtps
62 } /* namespace rtps */
63 } /* namespace eprosima */
64 
65 #endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
66 #endif // ifndef STRINGMATCHING_H_
Class StringMatching used to match different strings against each other as defined by the POSIX fnmat...
Definition: StringMatching.h:39
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