blob: 7732f2c7fa4259c590decfb76f9c4526de70126c (
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
51
52
53
54
55
56
57
58
59
60
|
/* -*- C++ -*- */
// ========================================================================
// $Id$
//
// = LIBRARY
// orbsvcs
//
// = FILENAME
// Offer_Iterator.cpp
//
// = AUTHOR
// Marina Spivak <marina@cs.wustl.edu>
// Seth Widoff <sbw1@cs.wustl.edu>
//
// ========================================================================
#define ACE_BUILD_DLL
#include "Offer_Iterator.h"
TAO_Offer_Iterator::TAO_Offer_Iterator (const TAO_Property_Filter& pfilter)
: pfilter_ (pfilter)
{
}
TAO_Offer_Iterator::~TAO_Offer_Iterator (void)
{
}
void
TAO_Offer_Iterator::destroy (CORBA::Environment& env)
TAO_THROW_SPEC ((CORBA::SystemException))
{
// Remove self from POA
//
// Note that there is no real error checking here as we can't do
// much about errors here anyway
//
TAO_TRY
{
PortableServer::POA_var poa = this->_default_POA (TAO_TRY_ENV);
TAO_CHECK_ENV;
PortableServer::ObjectId_var id = poa->servant_to_id (this, TAO_TRY_ENV);
TAO_CHECK_ENV;
poa->deactivate_object (id.in (), TAO_TRY_ENV);
}
TAO_CATCHANY
{
}
TAO_ENDTRY;
delete this;
}
|