DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AnyDataWriter.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_PUB_ANY_DATA_WRITER_HPP_
2 #define OMG_DDS_PUB_ANY_DATA_WRITER_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 <dds/core/macros.hpp>
23 #include <dds/core/ref_traits.hpp>
24 #include <dds/core/Exception.hpp>
25 #include <dds/pub/DataWriter.hpp>
27 
28 namespace dds {
29  namespace pub {
30  class AnyDataWriter;
31 
37  template <typename T>
38  DataWriter<T> get(const AnyDataWriter& adw);
39  }
40 }
41 
47 public:
48  template <typename T>
50 
51 public:
52  const dds::pub::qos::DataWriterQos& qos() const;
53 
55 
56  const std::string& topic_name() const;
57 
58  const std::string& type_name() const;
59 
60  const dds::pub::Publisher& publisher() const;
61 
62  void wait_for_acknowledgments(const dds::core::Duration& timeout);
63 
64  void close();
65 
66  void retain(bool b);
67 
68 public:
69  inline AnyDataWriter&
70  swap(AnyDataWriter& rhs);
71 
72  template <typename T> AnyDataWriter&
74 
75  template <typename T>
77 
79 
80 public:
85  template <typename T>
87 
88 public:
93  const detail::DWHolderBase* operator->() const;
94 
100 
101 
102 private:
104 };
105 
106 #endif /* OMG_DDS_PUB_ANY_DATA_WRITER_HPP_ */