diff options
Diffstat (limited to 'ACE/protocols/ace/RMCast/Stack.cpp')
-rw-r--r-- | ACE/protocols/ace/RMCast/Stack.cpp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/ACE/protocols/ace/RMCast/Stack.cpp b/ACE/protocols/ace/RMCast/Stack.cpp new file mode 100644 index 00000000000..19d592f5c21 --- /dev/null +++ b/ACE/protocols/ace/RMCast/Stack.cpp @@ -0,0 +1,71 @@ +// file : ace/RMCast/Stack.cpp +// author : Boris Kolpackov <boris@kolpackov.net> +// cvs-id : $Id$ + +#include "Stack.h" + +namespace ACE_RMCast +{ + // Out_Element + // + + Out_Element:: + ~Out_Element () + { + } + + Out_Element:: + Out_Element () + : out_ (0) + { + } + + void Out_Element:: + out_start (Out_Element* out) + { + out_ = out; + } + + void Out_Element::send (Message_ptr m) + { + if (out_) out_->send (m); + } + + void Out_Element:: + out_stop () + { + out_ = 0; + } + + + // In_Element + // + + In_Element:: + ~In_Element () + { + } + + In_Element:: + In_Element () + : in_ (0) + { + } + + void In_Element:: + in_start (In_Element* in) + { + in_ = in; + } + + void In_Element::recv (Message_ptr m) + { + if (in_) in_->recv (m); + } + + void In_Element:: + in_stop () + { + in_ = 0; + } +} |