DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
find.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_SUB_FIND_HPP_
2 #define OMG_DDS_SUB_FIND_HPP_
3 
4 /* Copyright 2010, Object Management Group, Inc.
5  * Copyright 2010, PrismTech, Corp.
6  * Copyright 2010, Real-Time Innovations, Inc.
7  * All rights reserved.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #include <string>
23 #include <vector>
24 
25 #include <dds/core/macros.hpp>
26 #include <dds/core/ref_traits.hpp>
27 #include <dds/sub/detail/find.hpp>
28 
29 
30 namespace dds { namespace sub {
31 
39 
52  template <typename READER, typename FwdIterator>
53  uint32_t
54  find(const dds::sub::Subscriber& sub,
55  const std::string& topic_name,
56  FwdIterator begin, uint32_t max_size);
57 
69  template <typename READER, typename BinIterator>
70  uint32_t
71  find(const dds::sub::Subscriber& sub,
72  const std::string& topic_name,
73  BinIterator begin);
74 
83  template <typename READER, typename T, typename FwdIterator>
84  uint32_t
85  find(const dds::sub::Subscriber& sub,
86  const dds::topic::TopicDescription<T>& topic_description,
87  FwdIterator begin, uint32_t max_size);
88 
97  template <typename READER, typename T, typename BinIterator>
98  uint32_t
99  find(const dds::sub::Subscriber& sub,
100  const dds::topic::TopicDescription<T>& topic_description,
101  BinIterator begin);
102 
107  template <typename READER, typename FwdIterator>
108  uint32_t
109  find(const dds::sub::Subscriber& sub,
110  const dds::sub::status::DataState& rs,
111  FwdIterator begin, uint32_t max_size);
112 
117  template <typename READER, typename BinIterator>
118  uint32_t
119  find(const dds::sub::Subscriber& sub,
120  const dds::sub::status::DataState& rs,
121  BinIterator begin);
122 
123 } }
124 
125 #endif /* OMG_DDS_SUB_FIND_HPP_ */