Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PortableInterceptor::ObjectReferenceFactory Interface Reference

#include <ObjectReferenceTemplateC.h>

Inheritance diagram for PortableInterceptor::ObjectReferenceFactory:

Inheritance graph
[legend]
Collaboration diagram for PortableInterceptor::ObjectReferenceFactory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ObjectReferenceFactory * _ptr_type
typedef ObjectReferenceFactory_var _var_type

Public Methods

Object make_object (in string repository_id, in ObjectId id)
virtual const char * _tao_obv_repository_id () const
 TAO extension. More...

virtual CORBA::Object_ptr make_object (const char *, const PortableInterceptor::ObjectId &ACE_ENV_ARG_DECL_WITH_DEFAULTS)=0 throw (CORBA::SystemException)

Static Public Methods

ObjectReferenceFactory * _downcast (CORBA::ValueBase *)
CORBA::Boolean _tao_unmarshal (TAO_InputCDR &, ObjectReferenceFactory *&)
const char * _tao_obv_static_repository_id ()
void _tao_any_destructor (void *)

Protected Methods

 ObjectReferenceFactory ()
virtual ~ObjectReferenceFactory ()
virtual void * _tao_obv_narrow (ptr_arith_t)
virtual CORBA::Boolean _tao_marshal_v (TAO_OutputCDR &)
 during marshal jump to the most derived part. More...

virtual CORBA::Boolean _tao_unmarshal_v (TAO_InputCDR &)
 called after obtaining the fresh object from create_for_unmarshal (). More...


Private Methods

 ObjectReferenceFactory (const ObjectReferenceFactory &)
void operator= (const ObjectReferenceFactory &)

Member Typedef Documentation

typedef ObjectReferenceFactory* PortableInterceptor::ObjectReferenceFactory::_ptr_type
 

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 165 of file ObjectReferenceTemplateC.h.

typedef ObjectReferenceFactory_var PortableInterceptor::ObjectReferenceFactory::_var_type
 

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 166 of file ObjectReferenceTemplateC.h.


Constructor & Destructor Documentation

ACE_INLINE PortableInterceptor::ObjectReferenceFactory::ObjectReferenceFactory   [protected]
 

Definition at line 23 of file ObjectReferenceTemplateC.i.

Referenced by _downcast, and _tao_any_destructor.

00024 {}

ACE_INLINE PortableInterceptor::ObjectReferenceFactory::~ObjectReferenceFactory   [protected, virtual]
 

Definition at line 27 of file ObjectReferenceTemplateC.i.

00028 {}

PortableInterceptor::ObjectReferenceFactory::ObjectReferenceFactory const ObjectReferenceFactory &    [private]
 


Member Function Documentation

PortableInterceptor::ObjectReferenceFactory * PortableInterceptor::ObjectReferenceFactory::_downcast CORBA::ValueBase   [static]
 

Reimplemented from CORBA_ValueBase.

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 471 of file ObjectReferenceTemplateC.cpp.

References _downcast, _tao_obv_narrow, ObjectReferenceFactory, and ptr_arith_t.

Referenced by _downcast, _tao_obv_narrow, and operator<<.

00472 {
00473   if (v == 0)
00474     {
00475       return 0;
00476     }
00477 
00478   return (ObjectReferenceFactory* ) v->_tao_obv_narrow ((ptr_arith_t) &_downcast);
00479 }

void PortableInterceptor::ObjectReferenceFactory::_tao_any_destructor void *    [static]
 

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 519 of file ObjectReferenceTemplateC.cpp.

References ObjectReferenceFactory.

Referenced by operator<<=, and operator>>=.

00520 {
00521   ObjectReferenceFactory *tmp = ACE_static_cast (ObjectReferenceFactory*, _tao_void_pointer);
00522   delete tmp;
00523 }

CORBA::Boolean PortableInterceptor::ObjectReferenceFactory::_tao_marshal_v TAO_OutputCDR   [protected, virtual]
 

during marshal jump to the most derived part.

Implements CORBA_ValueBase.

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 508 of file ObjectReferenceTemplateC.cpp.

00509 {
00510   return 0;
00511 }

void * PortableInterceptor::ObjectReferenceFactory::_tao_obv_narrow ptr_arith_t    [protected, virtual]
 

Implements CORBA_ValueBase.

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 496 of file ObjectReferenceTemplateC.cpp.

References _downcast, and ptr_arith_t.

Referenced by _downcast, and PortableInterceptor::ObjectReferenceTemplate::_tao_obv_narrow.

00497 {
00498   if (type_id == (ptr_arith_t) &_downcast)
00499     {
00500       return this;
00501     }
00502 
00503   void *rval = 0;
00504 
00505   return rval;
00506 }

const char * PortableInterceptor::ObjectReferenceFactory::_tao_obv_repository_id   const [virtual]
 

TAO extension.

Implements CORBA_ValueBase.

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 481 of file ObjectReferenceTemplateC.cpp.

References _tao_obv_static_repository_id.

00482 {
00483   return this->_tao_obv_static_repository_id ();
00484 }

ACE_INLINE const char * PortableInterceptor::ObjectReferenceFactory::_tao_obv_static_repository_id   [static]
 

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 31 of file ObjectReferenceTemplateC.i.

Referenced by _tao_obv_repository_id.

00032 {
00033   return "IDL:omg.org/PortableInterceptor/ObjectReferenceFactory:1.0";
00034 }

CORBA::Boolean PortableInterceptor::ObjectReferenceFactory::_tao_unmarshal TAO_InputCDR  ,
ObjectReferenceFactory *&   
[static]
 

Definition at line 525 of file ObjectReferenceTemplateC.cpp.

Referenced by operator>>.

00529 {
00530   CORBA::ValueBase *base;
00531   CORBA::ValueFactory_var factory;
00532   CORBA::Boolean retval =
00533     CORBA::ValueBase::_tao_unmarshal_pre (
00534         strm,
00535         factory.out (),
00536         base,
00537         ObjectReferenceFactory::_tao_obv_static_repository_id ()
00538       );
00539 
00540   if (retval == 0 || factory.in() == 0)
00541     {
00542       return 0;
00543     }
00544 
00545   base = factory->create_for_unmarshal ();
00546 
00547   if (base == 0)
00548     {
00549       return 0;  // %! except.?
00550     }
00551 
00552   retval = base->_tao_unmarshal_v (strm);
00553 
00554   if (retval == 0)
00555     {
00556       return 0;
00557     }
00558 
00559   // Now base must be null or point to the unmarshaled object.
00560   // Align the pointer to the right subobject.
00561   new_object = ObjectReferenceFactory::_downcast (base);
00562   return retval;
00563 }

CORBA::Boolean PortableInterceptor::ObjectReferenceFactory::_tao_unmarshal_v TAO_InputCDR   [protected, virtual]
 

called after obtaining the fresh object from create_for_unmarshal ().

Implements CORBA_ValueBase.

Implemented in PortableInterceptor::ObjectReferenceTemplate.

Definition at line 513 of file ObjectReferenceTemplateC.cpp.

00514 {
00515   return 0;
00516 }

virtual CORBA::Object_ptr PortableInterceptor::ObjectReferenceFactory::make_object const char *   ,
const PortableInterceptor::ObjectId   ACE_ENV_ARG_DECL_WITH_DEFAULTS
throw (CORBA::SystemException) [pure virtual]
 

Object PortableInterceptor::ObjectReferenceFactory::make_object in string    repository_id,
in ObjectId    id
 

void PortableInterceptor::ObjectReferenceFactory::operator= const ObjectReferenceFactory &    [private]
 


The documentation for this interface was generated from the following files:
Generated on Mon Jun 16 16:11:32 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002