PolicyC.cpp File Reference

#include "tao/PolicyC.h"
#include "tao/CDR.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
#include "tao/Basic_Arguments.h"
#include "tao/Object_Argument_T.h"
#include "ace/OS_NS_string.h"
#include "tao/AnyTypeCode_Adapter.h"
#include "ace/Dynamic_Service.h"

Include dependency graph for PolicyC.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  CORBA
namespace  TAO

Defines

#define _CORBA_POLICY__ARG_TRAITS_CS_

Functions

CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::PolicyError &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::PolicyError &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::InvalidPolicies &_tao_aggregate)
CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::InvalidPolicies &_tao_aggregate)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const CORBA::Policy_ptr _tao_objref)
CORBA::Boolean operator>> (TAO_InputCDR &strm, CORBA::Policy_ptr &_tao_objref)

Variables

TAO::Collocation_Proxy_Broker *(* CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer )(CORBA::Object_ptr obj)=0


Define Documentation

#define _CORBA_POLICY__ARG_TRAITS_CS_
 

Definition at line 74 of file PolicyC.cpp.


Function Documentation

CORBA::Boolean operator<< TAO_OutputCDR strm,
const CORBA::Policy_ptr  _tao_objref
 

Definition at line 723 of file PolicyC.cpp.

00727 {
00728   CORBA::Object_ptr _tao_corba_obj = _tao_objref;
00729   return (strm << _tao_corba_obj);
00730 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const CORBA::InvalidPolicies _tao_aggregate
 

Definition at line 662 of file PolicyC.cpp.

00666 {
00667   // First marshal the repository ID.
00668   if (strm << _tao_aggregate._rep_id ())
00669     {
00670       // Now marshal the members (if any).
00671       return (
00672         (strm << _tao_aggregate.indices)
00673        );
00674     }
00675   else
00676     {
00677       return false;
00678     }
00679 }

CORBA::Boolean operator<< TAO_OutputCDR strm,
const CORBA::PolicyError _tao_aggregate
 

Definition at line 629 of file PolicyC.cpp.

00633 {
00634   // First marshal the repository ID.
00635   if (strm << _tao_aggregate._rep_id ())
00636     {
00637       // Now marshal the members (if any).
00638       return (
00639         (strm << _tao_aggregate.reason)
00640        );
00641     }
00642   else
00643     {
00644       return false;
00645     }
00646 }

CORBA::Boolean operator>> TAO_InputCDR strm,
CORBA::Policy_ptr _tao_objref
 

Definition at line 732 of file PolicyC.cpp.

00736 {
00737   CORBA::Object_var obj;
00738 
00739   if (!(strm >> obj.inout ()))
00740     {
00741       return false;
00742     }
00743 
00744   typedef ::CORBA::Policy RHS_SCOPED_NAME;
00745 
00746   // Narrow to the right type.
00747   _tao_objref =
00748     TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
00749         obj.in (),
00750         CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer
00751       );
00752 
00753   return 1;
00754 }

CORBA::Boolean operator>> TAO_InputCDR strm,
CORBA::InvalidPolicies _tao_aggregate
 

Definition at line 681 of file PolicyC.cpp.

00685 {
00686   // Demarshal the members.
00687   return (
00688     (strm >> _tao_aggregate.indices)
00689   );
00690 }

CORBA::Boolean operator>> TAO_InputCDR strm,
CORBA::PolicyError _tao_aggregate
 

Definition at line 648 of file PolicyC.cpp.

00652 {
00653   // Demarshal the members.
00654   return (
00655     (strm >> _tao_aggregate.reason)
00656   );
00657 }


Variable Documentation

TAO::Collocation_Proxy_Broker*(* CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer)( CORBA::Object_ptr obj ) = 0
 

Definition at line 397 of file PolicyC.cpp.

Referenced by CORBA::Policy::_narrow(), CORBA::Policy::_unchecked_narrow(), and operator>>().


Generated on Sun Jan 27 13:12:26 2008 for TAO by doxygen 1.3.6