summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tests/VariousTopicsState/Base/VTopics_Base.idl
blob: 89a8f92a67ed85a3c815469eaa6faecd0190e246 (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
58
59
60
61
62
63
64
65
// $Id$

/**
 * @file   VTopics_Base.idl
 * @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
 */

#ifndef VTOPICS_BASE_IDL
#define VTOPICS_BASE_IDL

#pragma ndds typesupport "Base/VTopics_BaseSupport.h"

  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;

   };

 */

  struct test {
    short x_test;
    string x_teststr;
  };
  typedef sequence<test> test_seq;

  //sequence
  struct TopicSeq {
    string key; //@key
    test_seq x_seq;
   };


  typedef sequence<TestTopic> TestTopic_Seq;
  typedef sequence<TopicString> TopicString_Seq;
  typedef sequence<TopicArray> TopicArray_Seq;
 // typedef sequence<TopicUnion> TopicUnion_Seq;
  typedef sequence<TopicSeq> TopicSeq_Seq;


#endif