summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/tutorials/Shapes/Shapes_asm/ShapesReceiver_comp/src/ShapesReceiver_exec.h
blob: e132abbe3b48e1a2eafd79edb1d03d69616f1a04 (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
69
70
71
72
73
74
75
76
77
78
79
80
// -*- C++ -*-
// $Id$

#ifndef SHAPES_RECEIVER_EXEC_H_
#define SHAPES_RECEIVER_EXEC_H_

#include "ShapesReceiver_compEC.h"

#include /**/ "ShapesReceiver_exec_export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/LocalObject.h"
#include "ace/Reactor.h"

namespace CIAO_Shapes_Receiver_comp_Impl
{
  //============================================================
  // ShapeType_Listener_exec_i
  //============================================================
  class SHAPES_RECEIVER_COMP_EXEC_Export ShapeType_Listener_exec_i
    : public virtual ::Shapes::ShapesConnector::CCM_Listener,
      public virtual ::CORBA::LocalObject
  {
  public:
    ShapeType_Listener_exec_i (void);
    virtual ~ShapeType_Listener_exec_i (void);

    virtual void
    on_one_data (
      const ShapeType & an_instance,
      const ::CCM_DDS::ReadInfo & info);
    virtual void
    on_many_data (
      const ::Shapes::ShapeTypeSeq & an_instance,
      const ::CCM_DDS::ReadInfoSeq & info);
  };

  class SHAPES_RECEIVER_COMP_EXEC_Export Receiver_exec_i
    : public virtual Receiver_comp_Exec,
      public virtual ::CORBA::LocalObject
  {
  public:
    Receiver_exec_i (void);
    virtual ~Receiver_exec_i (void);

    // Supported operations and attributes.

    // Component attributes.

    // Port operations.
    virtual ::Shapes::ShapesConnector::CCM_Listener_ptr
    get_info_out_data_listener (void);

    virtual ::CCM_DDS::CCM_PortStatusListener_ptr
    get_info_out_status (void);

    // Operations from Components::SessionComponent.
    virtual void
    set_session_context (
      ::Components::SessionContext_ptr ctx);

    virtual void configuration_complete (void);

    virtual void ccm_activate (void);
    virtual void ccm_passivate (void);
    virtual void ccm_remove (void);

  private:
    ::Shapes::CCM_Receiver_comp_Context_var context_;
  };

  extern "C" SHAPES_RECEIVER_COMP_EXEC_Export ::Components::EnterpriseComponent_ptr
  create_Shapes_Receiver_comp_Impl (void);
}

#endif /* ifndef */