summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/handcrafted/Display/RateGen/RateGenE.idl
blob: dacd2f25c33ecebe8e486b14b8ee48bda5922338 (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 RateGenE.idl
 *
 * Executor definition of the RateGen (a rate generator) component.
 * This file should be auto-generated by the CCIDL compiler when it
 * becomes available.
 *
 * @author Nanbor Wang <nanbor@cs.wustl.edu>
 */

#ifndef RATEGENE_IDL
#define RATEGENE_IDL

#include "CCM_Container.idl"
#include "RateGen.idl"
#include "../HUDisplayE.idl"

module HUDisplay
{
  local interface CCM_RateGen_Executor
    : Components::EnterpriseComponent, opmode
  {
    attribute long hertz;
  };

  local interface CCM_RateGen
    : Components::EnterpriseComponent, opmode
  {
    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_RateGen_Context
    : Components::SessionContext
  {
    void push_Pulse (in tick ev);
  };

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

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

  local interface CCM_RateGenHome
  : CCM_RateGenHomeExplicit,
    CCM_RateGenHomeImplicit
  {
  };
};

#endif /* RATEGENE_IDL */