summaryrefslogtreecommitdiff
path: root/TAO/utils/logWalker/PeerObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/utils/logWalker/PeerObject.h')
-rw-r--r--TAO/utils/logWalker/PeerObject.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/TAO/utils/logWalker/PeerObject.h b/TAO/utils/logWalker/PeerObject.h
new file mode 100644
index 00000000000..7a7be19bd68
--- /dev/null
+++ b/TAO/utils/logWalker/PeerObject.h
@@ -0,0 +1,38 @@
+// -*- C++ -*-
+
+// $Id$
+//
+
+#ifndef LOG_WALKER_PEER_OBJECT_H
+#define LOG_WALKER_PEER_OBJECT_H
+
+#include "ace/SString.h"
+#include "ace/Unbounded_Queue.h"
+#include "ace/streams.h"
+
+class PeerProcess;
+class Invocation;
+
+typedef ACE_Unbounded_Queue<Invocation*> Invocations;
+typedef ACE_Unbounded_Queue_Iterator<Invocation*> InvocationIter;
+
+class PeerObject
+{
+public:
+ PeerObject (long ident, const char *name, PeerProcess *parent);
+ virtual ~PeerObject (void);
+
+ void add_invocation (Invocation *inv);
+ void dump_detail (ostream &strm);
+ size_t num_invocations (void);
+ long ident (void);
+ ACE_CString &name (void);
+
+private:
+ long ident_;
+ ACE_CString name_;
+ PeerProcess *parent_;
+ Invocations invocations_;
+};
+
+#endif // LOG_WALKER_PEER_OBJECT_H