summaryrefslogtreecommitdiff
path: root/CIAO/tests/TTSCTest/Sender/Sender_exec.h
blob: 0c478b7d53e69fcab587991f4f3bdc4a8c32822f (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
81
82
83
84
85
86
87
88
89
90
// -*- C++ -*-
// $Id$

#ifndef CIAO_SENDER_EXEC_H_
#define CIAO_SENDER_EXEC_H_


#include "SenderEC.h"

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

#include /**/ "Sender_exec_export.h"
#include "tao/LocalObject.h"
#include "../TTSConnector/TTSConnectorC.h"


namespace CIAO_Sender_Impl
{
  class Sender_exec_i;

  class TTC_Callback_exec_i
     : public TTC_Callback,
       public virtual ::CORBA::LocalObject
     {
     public:
    TTC_Callback_exec_i(Sender_exec_i& sender_comp_callback);
       virtual ~TTC_Callback_exec_i (void);

       virtual void
       on_timer (const TTC::timeout_t &time);

     private:
        Sender_exec_i& sender_comp_callback_;

     };

 class SENDER_EXEC_Export Sender_exec_i
    : public virtual Sender_Exec,
      public virtual ::CORBA::LocalObject
  {
  public:
    Sender_exec_i ();
    virtual ~Sender_exec_i (void);

    //@{

    /** Supported operations and attributes. */
    virtual void
    start(void);

    virtual void
    do_something(void);
    //@}

    //@{
    /** Component attributes and port operations. */

    //@}

    //@{
    /** 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:
    CCM_Sender_Context_var context_;
    CORBA::UShort nr_trigger_;
    //Id of used Timetrigger
    TTC::TimerId timer_id_;
    ::CORBA::String_var TimerService_;
    const char *service_id_;

  };

  extern "C" SENDER_EXEC_Export ::Components::EnterpriseComponent_ptr
  create_Sender_Impl (void);
}

#endif /* ifndef */