#include <PolicyC.h>
Inheritance diagram for CORBA::InvalidPolicies:
Public Member Functions | |
InvalidPolicies (void) | |
InvalidPolicies (const InvalidPolicies &) | |
~InvalidPolicies (void) | |
InvalidPolicies & | operator= (const InvalidPolicies &) |
virtual CORBA::Exception * | _tao_duplicate (void) const |
Deep copy. | |
virtual void | _raise (void) const |
virtual void | _tao_encode (TAO_OutputCDR &) const |
virtual void | _tao_decode (TAO_InputCDR &) |
InvalidPolicies (const ::CORBA::UShortSeq &_tao_indices) | |
virtual CORBA::TypeCode_ptr | _tao_type (void) const |
Will be overridden in the concrete derived classes. | |
Static Public Member Functions | |
static void | _tao_any_destructor (void *) |
Used in the non-copying Any insertion operator. | |
static InvalidPolicies * | _downcast (CORBA::Exception *) |
The narrow operation. | |
static const InvalidPolicies * | _downcast (CORBA::Exception const *) |
The const version of narrow operation. | |
static CORBA::Exception * | _alloc (void) |
Public Attributes | |
CORBA::UShortSeq | indices |
Definition at line 174 of file PolicyC.h.
CORBA::InvalidPolicies::InvalidPolicies | ( | void | ) |
Definition at line 233 of file PolicyC.cpp.
00234 : CORBA::UserException ( 00235 "IDL:omg.org/CORBA/InvalidPolicies:1.0", 00236 "InvalidPolicies" 00237 ) 00238 { 00239 }
CORBA::InvalidPolicies::InvalidPolicies | ( | const InvalidPolicies & | ) |
CORBA::InvalidPolicies::~InvalidPolicies | ( | void | ) |
CORBA::InvalidPolicies::InvalidPolicies | ( | const ::CORBA::UShortSeq & | _tao_indices | ) |
CORBA::Exception * CORBA::InvalidPolicies::_alloc | ( | void | ) | [static] |
Definition at line 281 of file PolicyC.cpp.
References ACE_NEW_RETURN.
00282 { 00283 CORBA::Exception *retval = 0; 00284 ACE_NEW_RETURN (retval, ::CORBA::InvalidPolicies, 0); 00285 return retval; 00286 }
const CORBA::InvalidPolicies * CORBA::InvalidPolicies::_downcast | ( | CORBA::Exception const * | ) | [static] |
The const version of narrow operation.
Reimplemented from CORBA::UserException.
Definition at line 276 of file PolicyC.cpp.
CORBA::InvalidPolicies * CORBA::InvalidPolicies::_downcast | ( | CORBA::Exception * | ) | [static] |
The narrow operation.
Reimplemented from CORBA::UserException.
Definition at line 270 of file PolicyC.cpp.
void CORBA::InvalidPolicies::_raise | ( | void | ) | const [virtual] |
void CORBA::InvalidPolicies::_tao_any_destructor | ( | void * | ) | [static] |
Used in the non-copying Any insertion operator.
Reimplemented from CORBA::Exception.
Definition at line 262 of file PolicyC.cpp.
00263 { 00264 InvalidPolicies *_tao_tmp_pointer = 00265 static_cast<InvalidPolicies *> (_tao_void_pointer); 00266 delete _tao_tmp_pointer; 00267 }
void CORBA::InvalidPolicies::_tao_decode | ( | TAO_InputCDR & | ) | [virtual] |
Implements CORBA::Exception.
Definition at line 315 of file PolicyC.cpp.
00316 { 00317 if (cdr >> *this) 00318 { 00319 return; 00320 } 00321 00322 throw ::CORBA::MARSHAL (); 00323 }
CORBA::Exception * CORBA::InvalidPolicies::_tao_duplicate | ( | void | ) | const [virtual] |
Deep copy.
The following operation is used in the implementation of it performs a deep copy of the exception, normally it is implemented as:
class SomeException : public // Derives from CORBA::Exception { public: virtual CORBA::Exception *_tao_duplicate (void) const { CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, SomeException (*this), 0 ); return result; } };
Implements CORBA::Exception.
Definition at line 289 of file PolicyC.cpp.
References ACE_NEW_RETURN.
00290 { 00291 CORBA::Exception *result = 0; 00292 ACE_NEW_RETURN ( 00293 result, 00294 ::CORBA::InvalidPolicies (*this), 00295 0 00296 ); 00297 return result; 00298 }
void CORBA::InvalidPolicies::_tao_encode | ( | TAO_OutputCDR & | ) | const [virtual] |
Implements CORBA::Exception.
Definition at line 305 of file PolicyC.cpp.
00306 { 00307 if (cdr << *this) 00308 { 00309 return; 00310 } 00311 00312 throw ::CORBA::MARSHAL (); 00313 }
CORBA::TypeCode_ptr CORBA::InvalidPolicies::_tao_type | ( | void | ) | const [virtual] |
Will be overridden in the concrete derived classes.
Reimplemented from CORBA::UserException.
Definition at line 342 of file PolicyC.cpp.
References ACE_ERROR, ACE_TEXT, ACE_Dynamic_Service< TYPE >::instance(), and LM_ERROR.
00343 { 00344 TAO_AnyTypeCode_Adapter *adapter = 00345 ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance ( 00346 "AnyTypeCode_Adapter" 00347 ); 00348 if (adapter != 0) 00349 return adapter->_tao_type_InvalidPolicies (); 00350 else 00351 { 00352 ACE_ERROR ((LM_ERROR, 00353 ACE_TEXT ("(%P|%t) %p\n"), 00354 ACE_TEXT ("Unable to find the ") 00355 ACE_TEXT ("AnyTypeCode Adapter instance"))); 00356 return 0; 00357 } 00358 }
InvalidPolicies& CORBA::InvalidPolicies::operator= | ( | const InvalidPolicies & | ) |
CORBA::UShortSeq CORBA::InvalidPolicies::indices |