summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/idl/dds4ccm_Base.idl3
blob: c7322fb48ed153073a4b7286c6fcc10284aa7a2a (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
// $Id$
/**
 * @file dds4ccm_Base.idl3
 *
 */

#ifndef DDS4CCM_BASE_IDL3
#define DDS4CCM_BASE_IDL3

#include "dds_rtf2_dcps.idl"

module CCM_DDS
{
  typedef sequence<unsigned long> InstanceNumberSeq;
  exception AlreadyCreated {
    InstanceNumberSeq indexes; // of the erroneous
  };

  exception NonExistent{
    InstanceNumberSeq indexes; // of the erroneous
  };

  exception InternalError{
    unsigned long error_code; // DDS codes that are relevant:
    //ERROR (1); UNSUPPORTED (2); OUT_OF_RESOURCE (5)
    unsigned long index; // of the erroneaous
  };

  exception BadParameter {};

  enum AccessStatus {
    FRESH_INFO,
    ALREADY_SEEN
  };

  enum InstanceStatus {
    INSTANCE_CREATED,
    INSTANCE_UPDATED,
    INSTANCE_DELETED
  };

  struct ReadInfo {
    AccessStatus  access_status;
    InstanceStatus  instance_status;
    DDS::Time_t timestamp;
    unsigned long instance_rank;
  };
  typedef sequence<ReadInfo> ReadInfoSeq;

  struct QueryFilter {
    string            query;
    ::DDS::StringSeq  query_parameters;
  };
};

#endif