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

Classes

class  Arg_Traits< CORBA::Policy >

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 78 of file PolicyC.cpp.


Function Documentation

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

Definition at line 1011 of file PolicyC.cpp.

01015 {
01016   CORBA::Object_ptr _tao_corba_obj = _tao_objref;
01017   return (strm << _tao_corba_obj);
01018 }

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

Definition at line 950 of file PolicyC.cpp.

00954 {
00955   // First marshal the repository ID.
00956   if (strm << _tao_aggregate._rep_id ())
00957     {
00958       // Now marshal the members (if any).
00959       return (
00960         (strm << _tao_aggregate.indices)
00961        );
00962     }
00963   else
00964     {
00965       return false;
00966     }
00967 }

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

Definition at line 917 of file PolicyC.cpp.

00921 {
00922   // First marshal the repository ID.
00923   if (strm << _tao_aggregate._rep_id ())
00924     {
00925       // Now marshal the members (if any).
00926       return (
00927         (strm << _tao_aggregate.reason)
00928        );
00929     }
00930   else
00931     {
00932       return false;
00933     }
00934 }

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

Definition at line 1020 of file PolicyC.cpp.

01024 {
01025   CORBA::Object_var obj;
01026 
01027   if (!(strm >> obj.inout ()))
01028     {
01029       return false;
01030     }
01031 
01032   typedef ::CORBA::Policy RHS_SCOPED_NAME;
01033 
01034   // Narrow to the right type.
01035   _tao_objref =
01036     TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
01037         obj.in (),
01038         CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer
01039       );
01040 
01041   return 1;
01042 }

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

Definition at line 969 of file PolicyC.cpp.

00973 {
00974   // Demarshal the members.
00975   return (
00976     (strm >> _tao_aggregate.indices)
00977   );
00978 }

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

Definition at line 936 of file PolicyC.cpp.

00940 {
00941   // Demarshal the members.
00942   return (
00943     (strm >> _tao_aggregate.reason)
00944   );
00945 }


Variable Documentation

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

Definition at line 407 of file PolicyC.cpp.

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


Generated on Thu Nov 9 12:05:13 2006 for TAO by doxygen 1.3.6