00001 //****************************************************************** 00002 // 00003 // Generated by IDL to C++ Translator 00004 // 00005 // File name: GSDFPacketDcps.cpp 00006 // Source: gencxx/GSDFPacketDcps.idl 00007 // Generated: Wed May 17 22:13:07 2017 00008 // OpenSplice V6.4.140407OSS 00009 // 00010 //****************************************************************** 00011 00012 #include "opensplice_dds_comm/GSDFPacketDcps.h" 00013 00014 #if DDS_USE_EXPLICIT_TEMPLATES 00015 template class DDS_DCPSUVLSeq < opensplice_dds_comm::GSDFPacket, struct GSDFPacketSeq_uniq_>; 00016 #endif 00017 00018 const char * opensplice_dds_comm::GSDFPacketTypeSupportInterface::_local_id = "IDL:opensplice_dds_comm/GSDFPacketTypeSupportInterface:1.0"; 00019 00020 opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr opensplice_dds_comm::GSDFPacketTypeSupportInterface::_duplicate (opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr p) 00021 { 00022 if (p) p->m_count++; 00023 return p; 00024 } 00025 00026 DDS::Boolean opensplice_dds_comm::GSDFPacketTypeSupportInterface::_local_is_a (const char * _id) 00027 { 00028 if (strcmp (_id, opensplice_dds_comm::GSDFPacketTypeSupportInterface::_local_id) == 0) 00029 { 00030 return true; 00031 } 00032 00033 typedef DDS::TypeSupport NestedBase_1; 00034 00035 if (NestedBase_1::_local_is_a (_id)) 00036 { 00037 return true; 00038 } 00039 00040 return false; 00041 } 00042 00043 opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr opensplice_dds_comm::GSDFPacketTypeSupportInterface::_narrow (DDS::Object_ptr p) 00044 { 00045 opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr result = NULL; 00046 if (p && p->_is_a (opensplice_dds_comm::GSDFPacketTypeSupportInterface::_local_id)) 00047 { 00048 result = dynamic_cast < opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr> (p); 00049 if (result) result->m_count++; 00050 } 00051 return result; 00052 } 00053 00054 opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr opensplice_dds_comm::GSDFPacketTypeSupportInterface::_unchecked_narrow (DDS::Object_ptr p) 00055 { 00056 opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr result; 00057 result = dynamic_cast < opensplice_dds_comm::GSDFPacketTypeSupportInterface_ptr> (p); 00058 if (result) result->m_count++; 00059 return result; 00060 } 00061 00062 const char * opensplice_dds_comm::GSDFPacketDataWriter::_local_id = "IDL:opensplice_dds_comm/GSDFPacketDataWriter:1.0"; 00063 00064 opensplice_dds_comm::GSDFPacketDataWriter_ptr opensplice_dds_comm::GSDFPacketDataWriter::_duplicate (opensplice_dds_comm::GSDFPacketDataWriter_ptr p) 00065 { 00066 if (p) p->m_count++; 00067 return p; 00068 } 00069 00070 DDS::Boolean opensplice_dds_comm::GSDFPacketDataWriter::_local_is_a (const char * _id) 00071 { 00072 if (strcmp (_id, opensplice_dds_comm::GSDFPacketDataWriter::_local_id) == 0) 00073 { 00074 return true; 00075 } 00076 00077 typedef DDS::DataWriter NestedBase_1; 00078 00079 if (NestedBase_1::_local_is_a (_id)) 00080 { 00081 return true; 00082 } 00083 00084 return false; 00085 } 00086 00087 opensplice_dds_comm::GSDFPacketDataWriter_ptr opensplice_dds_comm::GSDFPacketDataWriter::_narrow (DDS::Object_ptr p) 00088 { 00089 opensplice_dds_comm::GSDFPacketDataWriter_ptr result = NULL; 00090 if (p && p->_is_a (opensplice_dds_comm::GSDFPacketDataWriter::_local_id)) 00091 { 00092 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataWriter_ptr> (p); 00093 if (result) result->m_count++; 00094 } 00095 return result; 00096 } 00097 00098 opensplice_dds_comm::GSDFPacketDataWriter_ptr opensplice_dds_comm::GSDFPacketDataWriter::_unchecked_narrow (DDS::Object_ptr p) 00099 { 00100 opensplice_dds_comm::GSDFPacketDataWriter_ptr result; 00101 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataWriter_ptr> (p); 00102 if (result) result->m_count++; 00103 return result; 00104 } 00105 00106 const char * opensplice_dds_comm::GSDFPacketDataReader::_local_id = "IDL:opensplice_dds_comm/GSDFPacketDataReader:1.0"; 00107 00108 opensplice_dds_comm::GSDFPacketDataReader_ptr opensplice_dds_comm::GSDFPacketDataReader::_duplicate (opensplice_dds_comm::GSDFPacketDataReader_ptr p) 00109 { 00110 if (p) p->m_count++; 00111 return p; 00112 } 00113 00114 DDS::Boolean opensplice_dds_comm::GSDFPacketDataReader::_local_is_a (const char * _id) 00115 { 00116 if (strcmp (_id, opensplice_dds_comm::GSDFPacketDataReader::_local_id) == 0) 00117 { 00118 return true; 00119 } 00120 00121 typedef DDS::DataReader NestedBase_1; 00122 00123 if (NestedBase_1::_local_is_a (_id)) 00124 { 00125 return true; 00126 } 00127 00128 return false; 00129 } 00130 00131 opensplice_dds_comm::GSDFPacketDataReader_ptr opensplice_dds_comm::GSDFPacketDataReader::_narrow (DDS::Object_ptr p) 00132 { 00133 opensplice_dds_comm::GSDFPacketDataReader_ptr result = NULL; 00134 if (p && p->_is_a (opensplice_dds_comm::GSDFPacketDataReader::_local_id)) 00135 { 00136 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataReader_ptr> (p); 00137 if (result) result->m_count++; 00138 } 00139 return result; 00140 } 00141 00142 opensplice_dds_comm::GSDFPacketDataReader_ptr opensplice_dds_comm::GSDFPacketDataReader::_unchecked_narrow (DDS::Object_ptr p) 00143 { 00144 opensplice_dds_comm::GSDFPacketDataReader_ptr result; 00145 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataReader_ptr> (p); 00146 if (result) result->m_count++; 00147 return result; 00148 } 00149 00150 const char * opensplice_dds_comm::GSDFPacketDataReaderView::_local_id = "IDL:opensplice_dds_comm/GSDFPacketDataReaderView:1.0"; 00151 00152 opensplice_dds_comm::GSDFPacketDataReaderView_ptr opensplice_dds_comm::GSDFPacketDataReaderView::_duplicate (opensplice_dds_comm::GSDFPacketDataReaderView_ptr p) 00153 { 00154 if (p) p->m_count++; 00155 return p; 00156 } 00157 00158 DDS::Boolean opensplice_dds_comm::GSDFPacketDataReaderView::_local_is_a (const char * _id) 00159 { 00160 if (strcmp (_id, opensplice_dds_comm::GSDFPacketDataReaderView::_local_id) == 0) 00161 { 00162 return true; 00163 } 00164 00165 typedef DDS::DataReaderView NestedBase_1; 00166 00167 if (NestedBase_1::_local_is_a (_id)) 00168 { 00169 return true; 00170 } 00171 00172 return false; 00173 } 00174 00175 opensplice_dds_comm::GSDFPacketDataReaderView_ptr opensplice_dds_comm::GSDFPacketDataReaderView::_narrow (DDS::Object_ptr p) 00176 { 00177 opensplice_dds_comm::GSDFPacketDataReaderView_ptr result = NULL; 00178 if (p && p->_is_a (opensplice_dds_comm::GSDFPacketDataReaderView::_local_id)) 00179 { 00180 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataReaderView_ptr> (p); 00181 if (result) result->m_count++; 00182 } 00183 return result; 00184 } 00185 00186 opensplice_dds_comm::GSDFPacketDataReaderView_ptr opensplice_dds_comm::GSDFPacketDataReaderView::_unchecked_narrow (DDS::Object_ptr p) 00187 { 00188 opensplice_dds_comm::GSDFPacketDataReaderView_ptr result; 00189 result = dynamic_cast < opensplice_dds_comm::GSDFPacketDataReaderView_ptr> (p); 00190 if (result) result->m_count++; 00191 return result; 00192 } 00193 00194 00195