blob: 11df9a0b8fb7f2d8450fb10bb066ca3b6f3df891 (
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
48
49
50
|
// $Id$
#include "PeerObject.h"
#include "Invocation.h"
PeerObject::PeerObject (long id, const char *name, PeerProcess *)
:ident_(id)
,name_(name)
// ,parent_(parent)
{
}
PeerObject::~PeerObject (void)
{
}
ACE_CString &
PeerObject::name (void)
{
return this->name_;
}
long
PeerObject::ident (void)
{
return this->ident_;
}
void
PeerObject::add_invocation (Invocation *inv)
{
this->invocations_.enqueue_tail (inv);
}
size_t
PeerObject::num_invocations (void)
{
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;
}
|