blob: 2dba4037ea9df0cde013db823acb2748195bcfdd (
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
|
// $Id$
#ifndef I2C_SHAPES_COMMON_H_
#define I2C_SHAPES_COMMON_H_
#include "I2C_Shapes_Common_export.h"
#include "connectors/dds4ccm/impl/ndds/DomainParticipant.h"
#include "connectors/dds4ccm/impl/ndds/DomainParticipantFactory.h"
#include "connectors/dds4ccm/impl/ndds/TypeSupport.h"
#include "Base/I2C_Shapes_Traits.h"
/**
* Pulse generator
*/
#define QOS_PROFILE "Shapes_Library#ShapesProfile"
class I2C_SHAPES_Export I2C_Shapes_Common
{
public:
I2C_Shapes_Common ();
~I2C_Shapes_Common ();
//@{
/** Public methods. */
::DDS::Publisher_ptr create_publisher (void);
::DDS::Subscriber_ptr create_subscriber (void);
//@}
//@{
/** Getters. */
::DDS::Topic_ptr get_topic (void);
//@}
private:
typedef ::CIAO::NDDS::DDS_TypeFactory_T <ShapeType_DDS_Traits,
ShapeTypeSeq> dds_type_factory;
//@{
/** Members. */
::CIAO::NDDS::DDS_DomainParticipantFactory_i participant_factory_;
::DDS::DomainParticipant_var participant_;
::CIAO::NDDS::DDS_TypeFactory_i * factory_;
::DDS::Topic_var topic_;
//@}
//@{
/** Private methods. */
int get_domain_id (void);
void initialize (void);
//@}
};
#endif /* I2C_SHAPES_COMMON_H_ */
|