blob: d38887768c51913129d3e7feaf1669ddb395321a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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/dds/Writer_T.cpp"
#endif /* WRITER_T_H */
|