summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl')
-rw-r--r--modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl75
1 files changed, 75 insertions, 0 deletions
diff --git a/modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl b/modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl
new file mode 100644
index 00000000000..c792557b4c0
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/tests/VariousTopicsEvent/Base/VTopic_Base.idl
@@ -0,0 +1,75 @@
+// $Id$
+
+/**
+ * @file VTopic_Base.idl
+ * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
+ */
+
+#ifndef VTOPIC_BASE_IDL
+#define VTOPIC_BASE_IDL
+
+#pragma ndds typesupport "Base/VTopic_BaseSupport.h"
+
+// Plain topic
+struct TestTopic {
+ string key; //@key
+ long x;
+};
+
+// String
+struct TopicString {
+ string key; //@key
+ string x_str;
+};
+
+// Arrays
+struct TopicArray {
+ string key; //@key
+ octet x_array[5];
+ };
+
+// Unions
+union X_Union switch (short) {
+ case 0:
+ string x_test;
+ case 1:
+ long x_long;
+};
+
+struct TopicUnion {
+ string key; //@key
+ X_Union x_uni;
+};
+
+// Sequence
+struct test {
+ short x_test;
+ string x_teststr;
+};
+typedef sequence<test> test_seq;
+
+struct TopicSeq {
+ string key; //@key
+ test_seq x_seq;
+};
+
+// ValueType
+valuetype X_Valuetype {
+ public string type;
+ public long x_long;
+};
+
+struct TopicValuetype {
+ string key; //@key
+ X_Valuetype x_vt;
+};
+
+// Sequences
+typedef sequence<TestTopic> TestTopicSeq;
+typedef sequence<TopicString> TopicStringSeq;
+typedef sequence<TopicArray> TopicArraySeq;
+typedef sequence<TopicUnion> TopicUnionSeq;
+typedef sequence<TopicSeq> TopicSeqSeq;
+typedef sequence<TopicValuetype> TopicValuetypeSeq;
+
+#endif