Go to the documentation of this file.00001
00002
00003 #ifndef CURRENT_IMPL_H
00004 #define CURRENT_IMPL_H
00005
00006 #include "ace/pre.h"
00007
00008 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00009 # pragma once
00010 #endif
00011
00012 #if TAO_HAS_TRANSPORT_CURRENT == 1
00013
00014 #include "tao/TransportCurrent/TCC.h"
00015 #include "tao/LocalObject.h"
00016
00017 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00018
00019 class TAO_Transport;
00020
00021 namespace TAO
00022 {
00023 namespace Transport
00024 {
00025
00026
00027 class Stats;
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 class TAO_Transport_Current_Export Current_Impl
00039 : public virtual Current
00040 , public virtual ::CORBA::LocalObject
00041 {
00042 public:
00043
00044
00045 Current_Impl (TAO_ORB_Core* core, size_t tss_slot_id);
00046
00047
00048
00049
00050
00051
00052 virtual CORBA::Long id (void);
00053
00054 virtual CounterT bytes_sent (void);
00055
00056 virtual CounterT bytes_received (void);
00057
00058 virtual CounterT messages_sent (void);
00059
00060 virtual CounterT messages_received (void);
00061
00062 virtual ::TimeBase::TimeT open_since (void);
00063
00064
00065 protected:
00066
00067
00068
00069
00070
00071
00072 const TAO_Transport* transport (void) const;
00073
00074
00075
00076
00077 const TAO::Transport::Stats* transport_stats (void) const;
00078
00079
00080
00081
00082
00083
00084 virtual ~Current_Impl (void);
00085
00086 private:
00087
00088
00089
00090
00091 Current_Impl (const Current_Impl &);
00092 void operator= (const Current_Impl &);
00093
00094
00095 private:
00096
00097
00098 TAO_ORB_Core* core_;
00099
00100
00101 size_t tss_slot_id_;
00102 };
00103
00104 }
00105
00106 }
00107
00108 TAO_END_VERSIONED_NAMESPACE_DECL
00109
00110 #endif
00111
00112
00113 #include "ace/post.h"
00114
00115 #endif