summaryrefslogtreecommitdiff
path: root/protocols/ace/RMCast/Stack.h
blob: 322fe0dc50189c5e65a428405a80364720e5f9f2 (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
// file      : ace/RMCast/Stack.h
// author    : Boris Kolpackov <boris@kolpackov.net>
// cvs-id    : $Id$

#ifndef ACE_RMCAST_STACK_H
#define ACE_RMCAST_STACK_H

#include "Protocol.h"

namespace ACE_RMCast
{
  struct Out_Element
  {
    virtual
    ~Out_Element ();

    Out_Element ();

    virtual void
    out_stop ();

    virtual void
    out_start (Out_Element* out);

    virtual void
    send (Message_ptr m);

  protected:
    Out_Element* out_;
  };


  struct In_Element
  {
    virtual
    ~In_Element ();

    In_Element ();

    virtual void
    in_stop ();

    virtual void
    in_start (In_Element* in);

    virtual void
    recv (Message_ptr m);

  protected:
    In_Element* in_;
  };


  struct Element : In_Element, Out_Element
  {
  };
}

#endif  // ACE_RMCAST_STACK_H