summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp')
-rw-r--r--CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp78
1 files changed, 0 insertions, 78 deletions
diff --git a/CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp b/CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp
deleted file mode 100644
index 4dbe6e8780b..00000000000
--- a/CIAO/connectors/dds4ccm/impl/InstanceHandleManager_T.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-#include "dds4ccm/impl/Utils.h"
-#include "dds4ccm/impl/logger/Log_Macros.h"
-#include "CCM_DataReader.h"
-
-namespace CIAO
-{
- namespace DDS4CCM
- {
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::InstanceHandleManager_T (void)
- {
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::~InstanceHandleManager_T (void)
- {
- DDS4CCM_TRACE ("CIAO::DDS4CCM::InstanceHandleManager_T::~InstanceHandleManager_T");
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- typename WRITER_TYPE::_ptr_type
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::dds_writer (void)
- {
- if (!::CORBA::is_nil (this->dds_writer_.in ()))
- {
- return this->dds_writer_.in ();
- }
- else
- {
- DDS4CCM_ERROR (DDS4CCM_LOG_LEVEL_ERROR, (LM_ERROR, DDS4CCM_INFO
- "InstanceHandleManager_T::dds_writer - "
- "Throwing BAD_INV_ORDER.\n"));
- throw ::CORBA::BAD_INV_ORDER ();
- }
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- ::DDS::InstanceHandle_t
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::register_instance (const VALUE_TYPE& datum)
- {
- return this->dds_writer ()->register_instance (datum);
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- void
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::unregister_instance (
- const VALUE_TYPE& datum,
- DDS_INSTANCE_HANDLE_T_IN instance_handle)
- {
- this->dds_writer ()->unregister_instance (datum, instance_handle);
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- void
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::set_dds_writer (
- ::DDS::DataWriter_ptr dds_writer)
- {
- DDS4CCM_TRACE ("CIAO::DDS4CCM::InstanceHandleManager_T::set_dds_writer");
-
- this->dds_writer_ = WRITER_TYPE::_narrow (dds_writer);
-
- if (!::CORBA::is_nil (dds_writer) && ::CORBA::is_nil (this->dds_writer_.in ()))
- {
- DDS4CCM_ERROR (DDS4CCM_LOG_LEVEL_ERROR, (LM_ERROR, DDS4CCM_INFO
- "InstanceHandleManager_T::set_dds_writer - "
- "narrow failed.\n"));
- throw ::CORBA::INTERNAL ();
- }
- }
-
- template <typename BASE_TYPE, typename WRITER_TYPE, typename VALUE_TYPE>
- ::DDS::DataWriter_ptr
- InstanceHandleManager_T<BASE_TYPE, WRITER_TYPE, VALUE_TYPE>::get_dds_writer (void)
- {
- return ::DDS::DataWriter::_duplicate (this->dds_writer_.in ());
- }
- }
-}