Пример #1
0
 virtual void on_requested_incompatible_qos(
       DDS::DataReader_ptr reader,
       const DDS::RequestedIncompatibleQosStatus& status) {
    OMG_DDS_LOG("EVT", "on_requested_incompatible_qos");
    handler_->on_requested_incompatible_qos(
          dds::core::status::RequestedIncompatibleQosStatus());
 }
Пример #2
0
 virtual void on_requested_deadline_missed(
       DDS::DataReader_ptr reader,
       const DDS::RequestedDeadlineMissedStatus& status) {
    OMG_DDS_LOG("EVT", "on_requested_deadline_missed");
    handler_->on_requested_deadline_missed(
          dds::core::status::RequestedDeadlineMissedStatus());
 }
void
SubscriberEventForwarder<dds::sub::Subscriber>::on_data_on_readers(DDS::Subscriber_ptr subscriber)
{
    OMG_DDS_LOG("EVT", "on_data_available");
    dds::sub::Subscriber s = sub_.lock();
    listener_->on_data_on_readers(s);
}
Пример #4
0
void org::opensplice::core::PubDeleter::close(DDS::Publisher* p)
{
    if(!is_closed_)
    {
        DDS::ReturnCode_t result = dp_->delete_publisher(p);
        org::opensplice::core::check_and_throw(result, OSPL_CONTEXT_LITERAL("Calling ::delete_publisher"));
        is_closed_ = true;

        if(dds::core::detail::maplog("MM") >= os_reportVerbosity)
        {
            std::ostringstream oss;
            oss << "Deleted Publisher at: " << std::hex << p << std::dec;
            OMG_DDS_LOG("MM", oss.str().c_str());
        }
    }
}
Пример #5
0
void org::opensplice::core::TopicDeleter::operator()(DDS::Topic* t)
{
    if(!is_closed_)
    {
        DDS::ReturnCode_t result = dp_->delete_topic(t);
        org::opensplice::core::check_and_throw(result, OSPL_CONTEXT_LITERAL("Calling ::delete_topic"));

        if(dds::core::detail::maplog("MM") >= os_reportVerbosity)
        {
            std::ostringstream oss;
            oss << "Deleted Topic at: " << std::hex << t << std::dec;
            OMG_DDS_LOG("MM", oss.str().c_str());
        }
    }
    DDS::release(t);
}
Пример #6
0
void org::opensplice::core::DWDeleter::operator()(DDS::DataWriter* w)
{
    if(!is_closed_)
    {
        DDS::ReturnCode_t result = pub_->delete_datawriter(w);
        org::opensplice::core::check_and_throw(result, OSPL_CONTEXT_LITERAL("Calling ::delete_datawriter"));

        if(dds::core::detail::maplog("MM") >= os_reportVerbosity)
        {
            std::ostringstream oss;
            oss << "Deleted DataWriter at: " << std::hex << w << std::dec;
            OMG_DDS_LOG("MM", oss.str().c_str());
        }
    }
    DDS::release(w);
}
Пример #7
0
void org::opensplice::core::DPDeleter::close(DDS::DomainParticipant* dp)
{
    if(!is_closed_)
    {
        DDS::DomainParticipantFactory_var dpf = DDS::DomainParticipantFactory::get_instance();
        DDS::ReturnCode_t result = dpf->delete_participant(dp);
        org::opensplice::core::check_and_throw(result, OSPL_CONTEXT_LITERAL("Calling ::delete_participant"));
        is_closed_ = true;

        if(dds::core::detail::maplog("MM") >= os_reportVerbosity)
        {
            std::ostringstream oss;
            oss << "Deleted Participant at: " << std::hex << dp << std::dec;
            OMG_DDS_LOG("MM", oss.str().c_str());
        }
    }
}
Пример #8
0
void org::opensplice::core::DRDeleter::close(DDS::DataReader* r)
{
    if(!is_closed_ && !is_builtin_)
    {
        DDS::ReturnCode_t result = sub_->delete_datareader(r);
        org::opensplice::core::check_and_throw(result, OSPL_CONTEXT_LITERAL("Calling ::delete_datareader"));
        is_closed_ = true;

        if(dds::core::detail::maplog("MM") >= os_reportVerbosity)
        {
            std::ostringstream oss;
            oss << "Deleted DataReader at: " << std::hex << r << std::dec;
            OMG_DDS_LOG("MM", oss.str().c_str());
        }
    }
    if(is_builtin_)
    {
        throw 0;
    }
}
Пример #9
0
 virtual void on_sample_lost(DDS::DataReader_ptr reader,
       const DDS::SampleLostStatus& status) {
    OMG_DDS_LOG("EVT", "on_sample_lost");
    handler_->on_sample_lost(dds::core::status::SampleLostStatus());
 }
Пример #10
0
 virtual void on_subscription_matched(DDS::DataReader_ptr reader,
       const DDS::SubscriptionMatchedStatus& status) {
    OMG_DDS_LOG("EVT", "on_subscription_matched");
    handler_->on_subscription_matched(
          dds::core::status::SubscriptionMatchedStatus());
 }
Пример #11
0
 virtual void on_data_available(DDS::DataReader_ptr reader) {
    OMG_DDS_LOG("EVT", "on_data_available");
    handler_->on_data_available();
 }
Пример #12
0
 virtual void on_liveliness_changed(DDS::DataReader_ptr reader,
       const DDS::LivelinessChangedStatus& status) {
    OMG_DDS_LOG("EVT", "on_liveliness_changed");
    handler_->on_liveliness_changed(
          dds::core::status::LivelinessChangedStatus());
 }
Пример #13
0
 virtual void on_sample_rejected(DDS::DataReader_ptr reader,
       const DDS::SampleRejectedStatus& status) {
    OMG_DDS_LOG("EVT", "on_sample_rejected");
    handler_->on_sample_rejected(
          dds::core::status::SampleRejectedStatus());
 }