blob: 454895089c5c22867fdb0fa783a8acbb2ceb873b (
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
|
// $Id$
#include "tao/Tagged_Profile.h"
#include "tao/ORB_Core.h"
#include "tao/Acceptor_Registry.h"
#include "tao/Pluggable.h"
#include "tao/debug.h"
#if !defined (__ACE_INLINE__)
# include "tao/Tagged_Profile.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID(tao, Tagged_Profile, "$Id$")
CORBA::Boolean
TAO_Tagged_Profile::extract_object_key (IOP::TaggedProfile &profile)
{
// Get our Acceptor registry
TAO_Acceptor_Registry *acceptor_registry =
this->orb_core_->acceptor_registry ();
// Get the right acceptor for the tag in the TaggedProfile
TAO_Acceptor *acceptor =
acceptor_registry->get_acceptor (profile.tag);
if (acceptor)
{
// Get the object key
int retval =
acceptor->object_key (profile,
this->object_key_);
if (retval == -1)
return 0;
}
else
{
if (TAO_debug_level > 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%P|%t)TAO_Tagged_Profile \n")),
0);
}
return 1;
}
|