00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_INCOMING_MESSAGE_STACK_H
00014 #define TAO_INCOMING_MESSAGE_STACK_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/Queued_Data.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #if defined (__BORLANDC__) && (__BORLANDC__ <= 0x591)
00025 #include "tao/TAO_Export.h"
00026 #endif
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 class ACE_Allocator;
00030 ACE_END_VERSIONED_NAMESPACE_DECL
00031
00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00033
00034 namespace TAO
00035 {
00036
00037
00038
00039
00040
00041
00042
00043
00044 #if defined (__BORLANDC__) && (__BORLANDC__ <= 0x593)
00045 class TAO_Export Incoming_Message_Stack
00046 #else
00047 class Incoming_Message_Stack
00048 #endif
00049 {
00050 public:
00051
00052 Incoming_Message_Stack();
00053
00054
00055 ~Incoming_Message_Stack() ;
00056
00057
00058
00059 void push(TAO_Queued_Data *data);
00060
00061
00062
00063 int pop (TAO_Queued_Data* &data);
00064
00065
00066
00067 int top (TAO_Queued_Data* &data) const;
00068
00069 private:
00070
00071 TAO_Queued_Data *top_;
00072
00073 private:
00074
00075 Incoming_Message_Stack (const Incoming_Message_Stack&);
00076
00077
00078 Incoming_Message_Stack& operator= (Incoming_Message_Stack& other);
00079 };
00080 }
00081
00082 TAO_END_VERSIONED_NAMESPACE_DECL
00083
00084 #if defined (__ACE_INLINE__)
00085 # include "tao/Incoming_Message_Stack.inl"
00086 #endif
00087
00088 #include "ace/post.h"
00089 #endif