DataWriterRemoteImpl.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include "DataWriterRemoteImpl.h"
00009 #include "dds/DCPS/DataWriterCallbacks.h"
00010 #include "dds/DCPS/GuidConverter.h"
00011
00012 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00013
00014 namespace OpenDDS {
00015 namespace DCPS {
00016
00017 DataWriterRemoteImpl::DataWriterRemoteImpl(DataWriterCallbacks& parent)
00018 : parent_(parent)
00019 {
00020 }
00021
00022
00023
00024 DataWriterRemoteImpl::~DataWriterRemoteImpl()
00025 {
00026 }
00027
00028 void
00029 DataWriterRemoteImpl::detach_parent()
00030 {
00031 }
00032
00033 void
00034 DataWriterRemoteImpl::add_association(const RepoId& yourId,
00035 const ReaderAssociation& reader,
00036 bool active)
00037 {
00038 if (DCPS_debug_level) {
00039 GuidConverter writer_converter(yourId);
00040 GuidConverter reader_converter(reader.readerId);
00041 ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) DataWriterRemoteImpl::add_association - ")
00042 ACE_TEXT("local %C remote %C\n"),
00043 std::string(writer_converter).c_str(),
00044 std::string(reader_converter).c_str()));
00045 }
00046
00047
00048 RcHandle<DataWriterCallbacks> parent = parent_.lock();
00049 if (parent.in()) {
00050 parent->add_association(yourId, reader, active);
00051 }
00052 }
00053
00054 void
00055 DataWriterRemoteImpl::association_complete(const RepoId& remote_id)
00056 {
00057
00058 RcHandle<DataWriterCallbacks> parent = parent_.lock();
00059 if (parent.in()) {
00060 parent->association_complete(remote_id);
00061 }
00062 }
00063
00064 void
00065 DataWriterRemoteImpl::remove_associations(const ReaderIdSeq& readers,
00066 CORBA::Boolean notify_lost)
00067 {
00068
00069 RcHandle<DataWriterCallbacks> parent = parent_.lock();
00070 if (parent.in()) {
00071 parent->remove_associations(readers, notify_lost);
00072 }
00073 }
00074
00075 void
00076 DataWriterRemoteImpl::update_incompatible_qos(
00077 const IncompatibleQosStatus& status)
00078 {
00079
00080 RcHandle<DataWriterCallbacks> parent = parent_.lock();
00081 if (parent.in()) {
00082 parent->update_incompatible_qos(status);
00083 }
00084 }
00085
00086 void
00087 DataWriterRemoteImpl::update_subscription_params(const RepoId& readerId,
00088 const DDS::StringSeq& params)
00089 {
00090
00091 RcHandle<DataWriterCallbacks> parent = parent_.lock();
00092 if (parent.in()) {
00093 parent->update_subscription_params(readerId, params);
00094 }
00095 }
00096
00097 }
00098 }
00099
00100 OPENDDS_END_VERSIONED_NAMESPACE_DECL