PortableInterceptor::PolicyFactory Interface Reference

import "PolicyFactory.pidl";

Inheritance diagram for PortableInterceptor::PolicyFactory:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef PolicyFactory_ptr _ptr_type
typedef PolicyFactory_var _var_type

Public Member Functions

CORBA::Policy create_policy (in CORBA::PolicyType type, in any value) raises (CORBA::PolicyError)
virtual::CORBA::Policy_ptr create_policy (::CORBA::PolicyType type, const::CORBA::Any &value)=0 throw ( ::CORBA::SystemException, ::CORBA::PolicyError )
virtual::CORBA::Policy_ptr _create_policy (CORBA::PolicyType type) throw ( CORBA::SystemException , CORBA::PolicyError )
virtual::CORBA::Boolean _is_a (const char *type_id)
virtual const char * _interface_repository_id (void) const
virtual::CORBA::Boolean marshal (TAO_OutputCDR &cdr)

Static Public Member Functions

PolicyFactory_ptr _duplicate (PolicyFactory_ptr obj)
void _tao_release (PolicyFactory_ptr obj)
PolicyFactory_ptr _narrow (::CORBA::Object_ptr obj)
PolicyFactory_ptr _unchecked_narrow (::CORBA::Object_ptr obj)
PolicyFactory_ptr _nil (void)

Protected Member Functions

 PolicyFactory (void)
virtual ~PolicyFactory (void)

Private Member Functions

 PolicyFactory (const PolicyFactory &)
void operator= (const PolicyFactory &)

Member Typedef Documentation

typedef PolicyFactory_ptr PortableInterceptor::PolicyFactory::_ptr_type
 

Reimplemented from CORBA::Object.

Definition at line 101 of file PolicyFactoryC.h.

typedef PolicyFactory_var PortableInterceptor::PolicyFactory::_var_type
 

Reimplemented from CORBA::Object.

Definition at line 102 of file PolicyFactoryC.h.


Constructor & Destructor Documentation

PortableInterceptor::PolicyFactory::PolicyFactory void   )  [protected]
 

Definition at line 83 of file PolicyFactoryC.cpp.

00084 {}

PortableInterceptor::PolicyFactory::~PolicyFactory void   )  [protected, virtual]
 

Definition at line 86 of file PolicyFactoryC.cpp.

00087 {}

PortableInterceptor::PolicyFactory::PolicyFactory const PolicyFactory  )  [private]
 


Member Function Documentation

CORBA::Policy_ptr PortableInterceptor::PolicyFactory::_create_policy CORBA::PolicyType  type  )  throw ( CORBA::SystemException , CORBA::PolicyError )
 

Definition at line 170 of file PolicyFactoryC.cpp.

References ACE_THROW_RETURN.

00174 {
00175   ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
00176                     CORBA::Policy::_nil ());
00177 }

PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_duplicate PolicyFactory_ptr  obj  )  [static]
 

Definition at line 112 of file PolicyFactoryC.cpp.

Referenced by TAO_PolicyFactory_Registry::register_policy_factory().

00113 {
00114   if (! ::CORBA::is_nil (obj))
00115     {
00116       obj->_add_ref ();
00117     }
00118 
00119   return obj;
00120 }

const char * PortableInterceptor::PolicyFactory::_interface_repository_id void   )  const [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 157 of file PolicyFactoryC.cpp.

00158 {
00159   return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
00160 }

CORBA::Boolean PortableInterceptor::PolicyFactory::_is_a const char *  type_id  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 129 of file PolicyFactoryC.cpp.

References ACE_OS::strcmp().

00133 {
00134   if (
00135       !ACE_OS::strcmp (
00136           value,
00137           "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0"
00138         ) ||
00139       !ACE_OS::strcmp (
00140           value,
00141           "IDL:omg.org/CORBA/LocalObject:1.0"
00142         ) ||
00143       !ACE_OS::strcmp (
00144           value,
00145           "IDL:omg.org/CORBA/Object:1.0"
00146         )
00147     )
00148     {
00149       return true; // success using local knowledge
00150     }
00151   else
00152     {
00153       return false;
00154     }
00155 }

PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_narrow ::CORBA::Object_ptr  obj  )  [static]
 

Definition at line 90 of file PolicyFactoryC.cpp.

00094 {
00095   return PolicyFactory::_duplicate (
00096       dynamic_cast<PolicyFactory_ptr> (_tao_objref)
00097     );
00098 }

PolicyFactory_ptr PortableInterceptor::PolicyFactory::_nil void   )  [inline, static]
 

Reimplemented from CORBA::Object.

Definition at line 119 of file PolicyFactoryC.h.

References PortableInterceptor::PolicyFactory_ptr.

Referenced by TAO_PolicyFactory_Registry::_create_policy(), and TAO_PolicyFactory_Registry::create_policy().

00120     {
00121       return static_cast<PolicyFactory_ptr> (0);
00122     }

void PortableInterceptor::PolicyFactory::_tao_release PolicyFactory_ptr  obj  )  [static]
 

Definition at line 123 of file PolicyFactoryC.cpp.

00124 {
00125   ::CORBA::release (obj);
00126 }

PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_unchecked_narrow ::CORBA::Object_ptr  obj  )  [static]
 

Definition at line 101 of file PolicyFactoryC.cpp.

00105 {
00106   return PolicyFactory::_duplicate (
00107       dynamic_cast<PolicyFactory_ptr> (_tao_objref)
00108     );
00109 }

virtual ::CORBA::Policy_ptr PortableInterceptor::PolicyFactory::create_policy ::CORBA::PolicyType  type,
const::CORBA::Any &  value
throw ( ::CORBA::SystemException, ::CORBA::PolicyError ) [pure virtual]
 

CORBA::Policy PortableInterceptor::PolicyFactory::create_policy in CORBA::PolicyType  type,
in any  value
raises (CORBA::PolicyError)
 

CORBA::Boolean PortableInterceptor::PolicyFactory::marshal TAO_OutputCDR cdr  )  [virtual]
 

Reimplemented from CORBA::Object.

Definition at line 163 of file PolicyFactoryC.cpp.

00164 {
00165   return false;
00166 }

void PortableInterceptor::PolicyFactory::operator= const PolicyFactory  )  [private]
 


The documentation for this interface was generated from the following files:
Generated on Thu Nov 9 12:52:46 2006 for TAO_PI by doxygen 1.3.6