• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ dds::Object_ptr类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中dds::Object_ptr的典型用法代码示例。如果您正苦于以下问题:C++ Object_ptr类的具体用法?C++ Object_ptr怎么用?C++ Object_ptr使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Object_ptr类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1:

Chat::NamedMessageDataReaderView_ptr Chat::NamedMessageDataReaderView::_narrow (DDS::Object_ptr p)
{
   Chat::NamedMessageDataReaderView_ptr result = NULL;
   if (p && p->_is_a (Chat::NamedMessageDataReaderView::_local_id))
   {
      result = dynamic_cast < Chat::NamedMessageDataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:xuefengchang,项目名称:dds_chatter,代码行数:10,代码来源:ChatDcps.cpp


示例2:

DDS::TypeSupportFactory_ptr DDS::TypeSupportFactory::_narrow (DDS::Object_ptr p)
{
   DDS::TypeSupportFactory_ptr result = NULL;
   if (p && p->_is_a (DDS::TypeSupportFactory::_local_id))
   {
      result = dynamic_cast<DDS::TypeSupportFactory_ptr> (p);
      result->m_count++;
   }
   return result;
}
开发者ID:diorahman,项目名称:opensplice,代码行数:10,代码来源:dds_dcps.cpp


示例3:

QuaternionTypeSupportInterface_ptr QuaternionTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
    QuaternionTypeSupportInterface_ptr result = NULL;
    if (p && p->_is_a (QuaternionTypeSupportInterface::_local_id))
    {
        result = dynamic_cast < QuaternionTypeSupportInterface_ptr> (p);
        if (result) result->m_count++;
    }
    return result;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:QuaternionDcps.cpp


示例4:

KonSensData::ServerReqDataReaderView_ptr KonSensData::ServerReqDataReaderView::_narrow (DDS::Object_ptr p)
{
   KonSensData::ServerReqDataReaderView_ptr result = NULL;
   if (p && p->_is_a (KonSensData::ServerReqDataReaderView::_local_id))
   {
      result = dynamic_cast < KonSensData::ServerReqDataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:snmbzkrt,项目名称:rfkon,代码行数:10,代码来源:KonSensDataDcps.cpp


示例5:

pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr pendulum_msgs::msg::dds_::JointCommand_DataWriter::_narrow (DDS::Object_ptr p)
{
   pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr result = NULL;
   if (p && p->_is_a (pendulum_msgs::msg::dds_::JointCommand_DataWriter::_local_id))
   {
      result = dynamic_cast < pendulum_msgs::msg::dds_::JointCommand_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:JointCommand_Dcps.cpp


示例6:

rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_DescribeParameters_Request_Dcps.cpp


示例7:

proxyPoseStampedTypeSupportInterface_ptr proxyPoseStampedTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   proxyPoseStampedTypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (proxyPoseStampedTypeSupportInterface::_local_id))
   {
      result = dynamic_cast < proxyPoseStampedTypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:proxyPoseStampedDcps.cpp


示例8:

rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_GetParameterTypes_Response_Dcps.cpp


示例9:

nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
   nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr result = NULL;
   if (p && p->_is_a (nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_local_id))
   {
      result = dynamic_cast < nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Sample_GetPlan_Request_Dcps.cpp


示例10:

sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr sensor_msgs::msg::dds_::CompressedImage_DataReader::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::CompressedImage_DataReader::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::CompressedImage_DataReader_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:CompressedImage_Dcps.cpp


示例11:

rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:GetParameterTypes_Response_Dcps.cpp


示例12:

geometry_msgs::msg::dds_::Wrench_DataWriter_ptr geometry_msgs::msg::dds_::Wrench_DataWriter::_narrow (DDS::Object_ptr p)
{
   geometry_msgs::msg::dds_::Wrench_DataWriter_ptr result = NULL;
   if (p && p->_is_a (geometry_msgs::msg::dds_::Wrench_DataWriter::_local_id))
   {
      result = dynamic_cast < geometry_msgs::msg::dds_::Wrench_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:Wrench_Dcps.cpp


示例13: _narrow

proxyPoseStampedDataWriter_ptr proxyPoseStampedDataWriter::_narrow (DDS::Object_ptr p)
{
   proxyPoseStampedDataWriter_ptr result = NULL;
   if (p && p->_is_a (proxyPoseStampedDataWriter::_local_id))
   {
      result = dynamic_cast < proxyPoseStampedDataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:proxyPoseStampedDcps.cpp


示例14:

std_msgs::msg::dds_::String_DataReader_ptr std_msgs::msg::dds_::String_DataReader::_narrow (DDS::Object_ptr p)
{
   std_msgs::msg::dds_::String_DataReader_ptr result = NULL;
   if (p && p->_is_a (std_msgs::msg::dds_::String_DataReader::_local_id))
   {
      result = dynamic_cast < std_msgs::msg::dds_::String_DataReader_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:String_Dcps.cpp


示例15:

std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr std_msgs::msg::dds_::MultiArrayDimension_DataWriter::_narrow (DDS::Object_ptr p)
{
   std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr result = NULL;
   if (p && p->_is_a (std_msgs::msg::dds_::MultiArrayDimension_DataWriter::_local_id))
   {
      result = dynamic_cast < std_msgs::msg::dds_::MultiArrayDimension_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:MultiArrayDimension_Dcps.cpp


示例16:

SEMADDS_Types::MessageDataWriter_ptr SEMADDS_Types::MessageDataWriter::_narrow (DDS::Object_ptr p)
{
   SEMADDS_Types::MessageDataWriter_ptr result = NULL;
   if (p && p->_is_a (SEMADDS_Types::MessageDataWriter::_local_id))
   {
      result = dynamic_cast < SEMADDS_Types::MessageDataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:locke12456,项目名称:DDS-Sample,代码行数:10,代码来源:semaddsDcps.cpp


示例17:

sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr sensor_msgs::msg::dds_::PointCloud_DataReaderView::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::PointCloud_DataReaderView::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::PointCloud_DataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:PointCloud_Dcps.cpp


示例18:

sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::JoyFeedbackArray_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
开发者ID:swift-nav,项目名称:ros_rover,代码行数:10,代码来源:JoyFeedbackArray_Dcps.cpp


示例19: _narrow

QuaternionDataWriter_ptr QuaternionDataWriter::_narrow (DDS::Object_ptr p)
{
    QuaternionDataWriter_ptr result = NULL;
    if (p && p->_is_a (QuaternionDataWriter::_local_id))
    {
        result = dynamic_cast < QuaternionDataWriter_ptr> (p);
        if (result) result->m_count++;
    }
    return result;
}
开发者ID:ronnyh,项目名称:ros_dds_proxies,代码行数:10,代码来源:QuaternionDcps.cpp



注:本文中的dds::Object_ptr类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ dds::Publisher_var类代码示例发布时间:2022-05-31
下一篇:
C++ dds::DomainParticipantFactory_var类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap