summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/handcrafted/BasicSP/EC/ECE.idl
blob: bb30be71973da96d97321ae4a09a6a9a9ee123f8 (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
66
67
68
// $Id$
//=============================================================================
/**
 * @file ECE.idl
 *
 * Executor definition of the EC (a rate generator) component.
 * This file should be auto-generated by the CCIDL compiler when it
 * becomes available.
 *
 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
 */
//=============================================================================
#ifndef CIAO_ECE_IDL
#define CIAO_ECE_IDL

#include "CCM_Container.idl"
#include "EC.idl"
#include "../BasicSP.idl"

module BasicSP
{
  local interface CCM_EC_Executor
    : Components::EnterpriseComponent
  {
    attribute long hertz;
  };

  local interface CCM_EC
    : Components::EnterpriseComponent
  {
    attribute long hertz;
  };

  /**
   * Context interface.  This interface defines the mapping.  The
   * container framework provides the implmentation.
   *
   * Notice that we are taking a shortcut here to inherit the
   * component-specific context from SessionContext directly instead
   * of CCMContext.
   */
  local interface CCM_EC_Context
    : Components::SessionContext
  {
    void push_timeout (in TimeOut ev);
  };

  local interface CCM_ECHomeExplicit
  : Components::HomeExecutorBase
  {
    Components::EnterpriseComponent new_EC (in long hertz)
      raises (Components::CCMException);
  };

  local interface CCM_ECHomeImplicit
  {
    Components::EnterpriseComponent create ()
      raises (Components::CCMException);
  };

  local interface CCM_ECHome
  : CCM_ECHomeExplicit,
    CCM_ECHomeImplicit
  {
  };
};

#endif /* CIAO_ECE_IDL */