PolicyC.h File Reference

#include "ace/config-all.h"
#include "tao/TAO_Export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/UShortSeqC.h"
#include "tao/CurrentC.h"
#include "tao/Policy_ForwardC.h"
#include "tao/PolicyC.inl"

Include dependency graph for PolicyC.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  TAO
namespace  CORBA

Classes

exception  PolicyError
exception  InvalidPolicies
interface  Policy
interface  PolicyManager
interface  PolicyCurrent

Defines

#define TAO_EXPORT_MACRO   TAO_Export
#define _CORBA_POLICYERROR_CH_
#define _CORBA_INVALIDPOLICIES_CH_
#define _CORBA_POLICY_CH_
#define _CORBA_POLICYMANAGER__VAR_OUT_CH_
#define _CORBA_POLICYMANAGER_CH_
#define _CORBA_POLICYCURRENT_CH_
#define _CORBA_POLICYMANAGER__TRAITS_CH_

Functions

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

Variables

TAO_Export TAO::Collocation_Proxy_Broker *(* CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer )(CORBA::Object_ptr obj)


Define Documentation

#define _CORBA_INVALIDPOLICIES_CH_
 

Definition at line 173 of file PolicyC.h.

#define _CORBA_POLICY_CH_
 

Definition at line 249 of file PolicyC.h.

#define _CORBA_POLICYCURRENT_CH_
 

Definition at line 502 of file PolicyC.h.

#define _CORBA_POLICYERROR_CH_
 

Definition at line 120 of file PolicyC.h.

#define _CORBA_POLICYMANAGER__TRAITS_CH_
 

Definition at line 605 of file PolicyC.h.

#define _CORBA_POLICYMANAGER__VAR_OUT_CH_
 

Definition at line 371 of file PolicyC.h.

#define _CORBA_POLICYMANAGER_CH_
 

Definition at line 394 of file PolicyC.h.

#define TAO_EXPORT_MACRO   TAO_Export
 

Definition at line 57 of file PolicyC.h.


Function Documentation

TAO_Export CORBA::Boolean operator<< TAO_OutputCDR ,
const CORBA::Policy_ptr 
 

Definition at line 1011 of file PolicyC.cpp.

References CORBA::Object_ptr, and CORBA::Policy_ptr.

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

TAO_Export CORBA::Boolean operator<< TAO_OutputCDR ,
const CORBA::InvalidPolicies
 

Definition at line 950 of file PolicyC.cpp.

References CORBA::Exception::_rep_id(), and CORBA::InvalidPolicies::indices.

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 }

TAO_Export CORBA::Boolean operator<< TAO_OutputCDR ,
const CORBA::PolicyError
 

Definition at line 917 of file PolicyC.cpp.

References CORBA::Exception::_rep_id(), and CORBA::PolicyError::reason.

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 }

TAO_Export CORBA::Boolean operator>> TAO_InputCDR ,
CORBA::Policy_ptr
 

Definition at line 1020 of file PolicyC.cpp.

References CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer, TAO_Pseudo_Var_T< T >::in(), TAO_Pseudo_Var_T< T >::inout(), CORBA::Object_var, CORBA::Policy_ptr, and TAO::Narrow_Utils< T >::unchecked_narrow().

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 }

TAO_Export CORBA::Boolean operator>> TAO_InputCDR ,
CORBA::InvalidPolicies
 

Definition at line 969 of file PolicyC.cpp.

References CORBA::InvalidPolicies::indices.

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

TAO_Export CORBA::Boolean operator>> TAO_InputCDR ,
CORBA::PolicyError
 

Definition at line 936 of file PolicyC.cpp.

References CORBA::PolicyError::reason.

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


Variable Documentation

TAO_Export TAO::Collocation_Proxy_Broker*(* CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer)( CORBA::Object_ptr obj )
 

Definition at line 572 of file PolicyC.h.

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


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