Classes | Namespaces | Defines | Typedefs | Functions | Variables

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 "tao/PolicyC.inl"
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.

Classes

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

Namespaces

namespace  TAO
 

Define symbolic names for the ORB collocation strategies.


namespace  CORBA
 

FUZZ: disable check_for_include/.


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

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 168 of file PolicyC.h.

#define _CORBA_POLICY__TRAITS_

Definition at line 377 of file PolicyC.h.

#define _CORBA_POLICY__VAR_OUT_CH_

Definition at line 221 of file PolicyC.h.

#define _CORBA_POLICY_CH_

Definition at line 244 of file PolicyC.h.

#define _CORBA_POLICYERROR_CH_

Definition at line 115 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::PolicyError  
)

Definition at line 630 of file PolicyC.cpp.

{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      return (
        (strm << _tao_aggregate.reason)
       );
    }
  else
    {
      return false;
    }
}

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

Definition at line 724 of file PolicyC.cpp.

{
  CORBA::Object_ptr _tao_corba_obj = _tao_objref;
  return (strm << _tao_corba_obj);
}

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

Definition at line 663 of file PolicyC.cpp.

{
  // First marshal the repository ID.
  if (strm << _tao_aggregate._rep_id ())
    {
      // Now marshal the members (if any).
      return (
        (strm << _tao_aggregate.indices)
       );
    }
  else
    {
      return false;
    }
}

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

Definition at line 682 of file PolicyC.cpp.

{
  // Demarshal the members.
  return (
    (strm >> _tao_aggregate.indices)
  );
}

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

Definition at line 649 of file PolicyC.cpp.

{
  // Demarshal the members.
  return (
    (strm >> _tao_aggregate.reason)
  );
}

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

Definition at line 733 of file PolicyC.cpp.

{
  CORBA::Object_var obj;

  if (!(strm >> obj.inout ()))
    {
      return false;
    }

  typedef ::CORBA::Policy RHS_SCOPED_NAME;

  // Narrow to the right type.
  _tao_objref =
    TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow (
        obj.in (),
        CORBA__TAO_Policy_Proxy_Broker_Factory_function_pointer
      );

  return 1;
}


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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines