Пример #1
0
 const dds::pub::DataWriter<T>& get() {
     OMG_DDS_STATIC_ASSERT(::dds::topic::is_topic_type<T>::value == 1);
     detail::DWHolder<T>* h = dynamic_cast<detail::DWHolder<T>* >(holder_.get());
     if (h == 0) {
         throw ::dds::core::InvalidDowncastError("invalid type");
     }
     return h->get();
 }
Пример #2
0
uint32_t
find(const dds::sub::Subscriber& sub,
		const dds::topic::TopicDescription<T>& topic_description,
		BinIterator begin) {

	OMG_DDS_STATIC_ASSERT((dds::core::is_same<T, typename READER::DataType>::value));
	return ::dds::sub::detail::find<READER, T, BinIterator>(sub,
                                                            topic_description,
                                                            begin);
}
Пример #3
0
const dds::topic::TopicDescription<T>& AnyTopicDescription::get()
{
    OMG_DDS_STATIC_ASSERT(::dds::topic::is_topic_type<T>::value == 1);
    detail::TDHolder<T>* h = dynamic_cast<detail::TDHolder<T>* >(holder_.get() );
    if (h == 0)
    {
        throw dds::core::InvalidDowncastError("invalid type");
    }
    return h->get();
}
Пример #4
0
dds::core::Reference<DELEGATE>&
dds::core::Reference<DELEGATE>::operator=(const R& rhs)
{
    OMG_DDS_STATIC_ASSERT((dds::core::is_base_of< DELEGATE_T, typename R::DELEGATE_T>::value));
    if(this != (Reference*)&rhs)
    {
        *this = Reference<DELEGATE_T>(rhs);
    }
    return *this;
}
Пример #5
0
dds::core::Reference<DELEGATE>&
dds::core::Reference<DELEGATE>::operator=(const Reference<D>& that)
{
    OMG_DDS_STATIC_ASSERT((dds::core::is_base_of<DELEGATE_T, D>::value));
    if(this != (Reference*)&that)
    {
        *this = Reference<DELEGATE_T>(that);
    }
    return *this;
}
Пример #6
0
dds::core::Reference<DELEGATE>::Reference(const Reference<D>& ref)
{
    OMG_DDS_STATIC_ASSERT((dds::core::is_base_of<DELEGATE_T,  D>::value));
    //OMG_DDS_LOG("MM", "Reference(const Reference<D>& ref)");
    impl_ = ref.delegate();
}