PolicyC.h File Reference

#include "ace/config-all.h"
#include "tao/ORB.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 dependency graph for PolicyC.h:

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

Go to the source code of this file.

Namespaces

namespace  TAO
namespace  CORBA

Classes

class  CORBA::PolicyError
class  CORBA::InvalidPolicies
class  CORBA::Policy
struct  TAO::Objref_Traits< ::CORBA::Policy >

Defines

#define TAO_EXPORT_MACRO   TAO_Export
#define _CORBA_POLICYERROR_CH_
#define _CORBA_INVALIDPOLICIES_CH_
#define _CORBA_POLICY__VAR_OUT_CH_
#define _CORBA_POLICY_CH_
#define _CORBA_POLICY__TRAITS_

Typedefs

typedef CORBA::Short CORBA::PolicyErrorCode
typedef CORBA::Short_out CORBA::PolicyErrorCode_out
typedef Policy * CORBA::Policy_ptr
typedef TAO_Objref_Var_T<
Policy > 
CORBA::Policy_var
typedef TAO_Objref_Out_T<
Policy > 
CORBA::Policy_out

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

const CORBA::PolicyErrorCode CORBA::BAD_POLICY = 0
const CORBA::PolicyErrorCode CORBA::UNSUPPORTED_POLICY = 1
const CORBA::PolicyErrorCode CORBA::BAD_POLICY_TYPE = 2
const CORBA::PolicyErrorCode CORBA::BAD_POLICY_VALUE = 3
const CORBA::PolicyErrorCode CORBA::UNSUPPORTED_POLICY_VALUE = 4
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 172 of file PolicyC.h.

#define _CORBA_POLICY__TRAITS_

Definition at line 381 of file PolicyC.h.

#define _CORBA_POLICY__VAR_OUT_CH_

Definition at line 225 of file PolicyC.h.

#define _CORBA_POLICY_CH_

Definition at line 248 of file PolicyC.h.

#define _CORBA_POLICYERROR_CH_

Definition at line 119 of file PolicyC.h.

#define TAO_EXPORT_MACRO   TAO_Export

Definition at line 56 of file PolicyC.h.


Function Documentation

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

Definition at line 724 of file PolicyC.cpp.

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

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

Definition at line 663 of file PolicyC.cpp.

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

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

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

Definition at line 630 of file PolicyC.cpp.

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

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

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

Definition at line 733 of file PolicyC.cpp.

References CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer, TAO_Pseudo_Var_T< T >::in(), and TAO_Pseudo_Var_T< T >::inout().

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

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

Definition at line 682 of file PolicyC.cpp.

References CORBA::InvalidPolicies::indices.

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

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

Definition at line 649 of file PolicyC.cpp.

References CORBA::PolicyError::reason.

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


Variable Documentation

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

Definition at line 398 of file PolicyC.cpp.

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


Generated on Tue Feb 2 17:38:43 2010 for TAO by  doxygen 1.4.7