diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-03-04 15:37:23 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2010-03-04 15:37:23 +0000 |
commit | 90efbfa7944bef0d3c3acf97ba64b2b41214c794 (patch) | |
tree | 0264a0d8718dc10406a84d86bd4b0562b24c3584 /CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h | |
parent | efbb8f0268dfa5e969733ff7aaec89d1f63aaf58 (diff) | |
download | ATCD-90efbfa7944bef0d3c3acf97ba64b2b41214c794.tar.gz |
Create bugfix branch for NGC reported bugsNGC_0_7_7_Bugfix
Diffstat (limited to 'CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h')
-rw-r--r-- | CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h b/CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h new file mode 100644 index 00000000000..2565f8337e8 --- /dev/null +++ b/CIAO/connectors/dds4ccm/impl/ndds/Writer_T.h @@ -0,0 +1,55 @@ +/** + * @author William R. Otte <wotte@dre.vanderbilt.edu> + * @author Johnny Willemsen <jwillemsen@remedy.nl> + * + * $Id$ + * + * Wrapper facade for NDDS. + */ + +#ifndef WRITER_T_H +#define WRITER_T_H + +#include "dds4ccm/idl/dds_rtf2_dcpsC.h" +#include "ace/Copy_Disabled.h" +#include "InstanceHandleManager_T.h" + +namespace CIAO +{ + namespace DDS4CCM + { + template <typename DDS_TYPE, typename CCM_TYPE> + class Writer_T : + public InstanceHandleManager_T <DDS_TYPE, CCM_TYPE, typename CCM_TYPE::writer_type> + { + public: + /// Constructor + Writer_T (void); + + /// Destructor + virtual ~Writer_T (void); + + virtual void write_one ( + const typename DDS_TYPE::value_type& an_instance, + const ::DDS::InstanceHandle_t & instance_handle); + + virtual void write_many ( + const typename CCM_TYPE::seq_type& instances); + + virtual ::CORBA::Boolean is_coherent_write (void); + + virtual void is_coherent_write ( ::CORBA::Boolean value); + + private: + void write_i (const typename DDS_TYPE::value_type& datum, + const ::DDS::InstanceHandle_t& instance_handle, + ::CCM_DDS::DataNumber_t index); + + bool is_coherent_write_; + }; + } +} + +#include "dds4ccm/impl/ndds/Writer_T.cpp" + +#endif /* WRITER_T_H */ |