diff options
author | boris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-02-22 19:07:38 +0000 |
---|---|---|
committer | boris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-02-22 19:07:38 +0000 |
commit | 365ac18992c037f169bdeaab3a069e7727aeb795 (patch) | |
tree | 7c5d43a3b031fe9cbfb20ae11933bf5f8460f626 /protocols | |
parent | fd1de8ea0dc5a4637b9a184f45e041904bfcd033 (diff) | |
download | ATCD-365ac18992c037f169bdeaab3a069e7727aeb795.tar.gz |
ChangeLogTag: Tue Feb 22 21:20:22 2005 Boris Kolpackov <boris@kolpackov.net>
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ace/RMCast/Stack.cpp | 64 | ||||
-rw-r--r-- | protocols/ace/RMCast/Stack.h | 50 |
2 files changed, 75 insertions, 39 deletions
diff --git a/protocols/ace/RMCast/Stack.cpp b/protocols/ace/RMCast/Stack.cpp index f9b2ddf78ea..aa62558b4c9 100644 --- a/protocols/ace/RMCast/Stack.cpp +++ b/protocols/ace/RMCast/Stack.cpp @@ -6,4 +6,68 @@ 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; + } } diff --git a/protocols/ace/RMCast/Stack.h b/protocols/ace/RMCast/Stack.h index 8f7078c6504..322fe0dc501 100644 --- a/protocols/ace/RMCast/Stack.h +++ b/protocols/ace/RMCast/Stack.h @@ -12,32 +12,18 @@ namespace ACE_RMCast struct Out_Element { virtual - ~Out_Element () - { - } + ~Out_Element (); - Out_Element () - : out_ (0) - { - } + Out_Element (); virtual void - out_start (Out_Element* out) - { - out_ = out; - } + out_stop (); virtual void - send (Message_ptr m) - { - if (out_) out_->send (m); - } + out_start (Out_Element* out); virtual void - out_stop () - { - out_ = 0; - } + send (Message_ptr m); protected: Out_Element* out_; @@ -47,41 +33,27 @@ namespace ACE_RMCast struct In_Element { virtual - ~In_Element () - { - } + ~In_Element (); - In_Element () - : in_ (0) - { - } + In_Element (); virtual void - in_start (In_Element* in) - { - in_ = in; - } + in_stop (); virtual void - recv (Message_ptr m) - { - if (in_) in_->recv (m); - } + in_start (In_Element* in); virtual void - in_stop () - { - in_ = 0; - } + recv (Message_ptr m); protected: In_Element* in_; }; + struct Element : In_Element, Out_Element { }; - } #endif // ACE_RMCAST_STACK_H |