blob: abf2e019be9afcce5b5648172213c0a97f0cd71b (
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
56
57
|
/**
* @author William R. Otte <wotte@dre.vanderbilt.edu>
* @author Johnny Willemsen (jwillemsen@remedy.nl)
*
* Wrapper facade for NDDS.
*/
#ifndef WRITER_T_H_
#define WRITER_T_H_
#include "dds4ccm/idl/dds_rtf2_dcpsC.h"
#include "InstanceHandleManager_T.h"
namespace CIAO
{
namespace DDS4CCM
{
template <typename WRITER_TYPE, typename TYPED_DDS_WRITER, typename VALUE_TYPE, typename SEQ_VALUE_TYPE>
class Writer_T
: public InstanceHandleManager_T <WRITER_TYPE, TYPED_DDS_WRITER, VALUE_TYPE>
{
public:
/// Constructor
Writer_T (void);
/// Destructor
virtual ~Writer_T (void);
virtual void write_one (
const VALUE_TYPE& an_instance,
DDS_INSTANCE_HANDLE_T_IN instance_handle);
virtual void write_many (const SEQ_VALUE_TYPE& instances);
/**
* @name is_coherent_write
* Accessors for is_coherent_write
*/
//@{
virtual ::CORBA::Boolean is_coherent_write (void);
virtual void is_coherent_write ( ::CORBA::Boolean value);
//@}
private:
void write_i (const VALUE_TYPE& datum,
DDS_INSTANCE_HANDLE_T_IN instance_handle,
::CCM_DDS::DataNumber_t index);
bool is_coherent_write_;
};
}
}
#include "dds4ccm/impl/Writer_T.cpp"
#endif /* WRITER_T_H_ */
|