00001
00002
00003
00004
00005 #include "Stack.h"
00006
00007 namespace ACE_RMCast
00008 {
00009
00010
00011
00012 Out_Element::
00013 ~Out_Element ()
00014 {
00015 }
00016
00017 Out_Element::
00018 Out_Element ()
00019 : out_ (0)
00020 {
00021 }
00022
00023 void Out_Element::
00024 out_start (Out_Element* out)
00025 {
00026 out_ = out;
00027 }
00028
00029 void Out_Element::send (Message_ptr m)
00030 {
00031 if (out_) out_->send (m);
00032 }
00033
00034 void Out_Element::
00035 out_stop ()
00036 {
00037 out_ = 0;
00038 }
00039
00040
00041
00042
00043
00044 In_Element::
00045 ~In_Element ()
00046 {
00047 }
00048
00049 In_Element::
00050 In_Element ()
00051 : in_ (0)
00052 {
00053 }
00054
00055 void In_Element::
00056 in_start (In_Element* in)
00057 {
00058 in_ = in;
00059 }
00060
00061 void In_Element::recv (Message_ptr m)
00062 {
00063 if (in_) in_->recv (m);
00064 }
00065
00066 void In_Element::
00067 in_stop ()
00068 {
00069 in_ = 0;
00070 }
00071 }