845 bool lazy_strategy =
false;
854 ACE_TEXT (
"TAO (%P|%t) WARNING: extracting object from ")
855 ACE_TEXT (
"default ORB_Core\n")));
863 lazy_strategy =
true;
871 if (!(cdr >> type_hint.inout ()))
875 if (!(cdr >> profile_count))
878 if (profile_count == 0)
894 ACE_TEXT (
"TAO (%P|%t) - Object::tao_object_initialize ")
895 ACE_TEXT (
"WARNING: extracting object from ")
896 ACE_TEXT (
"default ORB_Core\n")));
909 for (
CORBA::ULong i = 0; i != profile_count && cdr.good_bit (); ++i)
914 if (mp.give_profile (pfile) == -1)
917 ACE_TEXT (
"TAO (%P|%t) ERROR: give_profile\n")
918 ACE_TEXT (
" returned -1\n")));
924 if (mp.profile_count () != profile_count)
929 ACE_TEXT (
"TAO (%P|%t) - ERROR: Could not create all ")
930 ACE_TEXT (
"profiles while extracting object [%d, %d] ")
931 ACE_TEXT (
"reference from the CDR stream.\n"),
932 mp.profile_count (), profile_count),
936 objdata = orb_core->
create_stub (type_hint.in (), mp);
938 catch (const ::CORBA::Exception& ex)
941 ex._tao_print_exception (
942 ACE_TEXT (
"TAO (%P|%t) - ERROR creating stub ")
943 ACE_TEXT (
"object when demarshaling object ")
944 ACE_TEXT (
"reference.\n"));
958 (void) safe_objdata.release ();
Defines the Profile interface.
Encapsulates the state of an ORB.
TAO_Resource_Factory * resource_factory(void)
Returns pointer to the resource factory.
Implementation of a CORBA object reference.
TAO::String_var< CORBA::Char > String_var
static CORBA::Object_ptr _nil(void)
Return a NULL object.
Use resources in a lazy manner.
TAO_Stub * create_stub(const char *repository_id, const TAO_MProfile &profiles)
#define TAOLIB_ERROR_RETURN(X, Y)
#define ACE_NEW_NORETURN(POINTER, CONSTRUCTOR)
CORBA::Object_ptr create_object(TAO_Stub *the_stub)
Per-ORB TAO Connector Registry.
TAO_Connector_Registry * connector_registry(void)
Get the connector registry.
TAO_Profile * create_profile(TAO_InputCDR &cdr)
Create a profile based on the contents of cdr.
TAO_ORB_Core * TAO_ORB_Core_instance(void)
#define ACE_NEW_RETURN(POINTER, CONSTRUCTOR, RET_VAL)
unsigned int TAO_debug_level
This class implements the basic interface for supporting multiple profiles.
virtual TAO_Resource_Factory::Resource_Usage resource_usage_strategy(void) const =0
Return the resource usage strategy.
Implements the draft C++ standard auto_ptr abstraction. This class allows one to work Stub Objects On...