summaryrefslogtreecommitdiff
path: root/TAO/utils/logWalker/PeerObject.cpp
blob: 3e7d4d4986bb2d6c97c2521d9f7a199524454160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

#include "PeerObject.h"
#include "Invocation.h"

PeerObject::PeerObject (long id, const char *name, PeerProcess *)
  :ident_(id)
  ,name_(name)
   // ,parent_(parent)
{
}

PeerObject::~PeerObject ()
{
}

ACE_CString &
PeerObject::name ()
{
  return this->name_;
}

long
PeerObject::ident ()
{
  return this->ident_;
}

void
PeerObject::add_invocation (Invocation *inv)
{
  this->invocations_.enqueue_tail (inv);
}
size_t
PeerObject::num_invocations ()
{
  return this->invocations_.size();
}

void
PeerObject::dump_detail (ostream &strm)
{
  size_t s = this->invocations_.size();
  strm  << "  " << this->name_ << " has "
        << s << " invocation"
        << (s > 1 ? "s" : "")
        << endl;
}