Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > e7ce49c3b1c0711bfa288ad4094ed286 > files > 149

libomniorb-devel-4.1.0-5mdv2009.1.i586.rpm

// This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
#ifndef __poa_enums_operators_hh__
#define __poa_enums_operators_hh__

inline void operator >>=(PortableServer::ThreadPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::ThreadPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::ORB_CTRL_MODEL:

    case PortableServer::SINGLE_THREAD_MODEL:

    case PortableServer::MAIN_THREAD_MODEL:


    _e = (PortableServer::ThreadPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::ThreadPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::ThreadPolicyValue& _s);

inline void operator >>=(PortableServer::LifespanPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::LifespanPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::TRANSIENT:

    case PortableServer::PERSISTENT:


    _e = (PortableServer::LifespanPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::LifespanPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::LifespanPolicyValue& _s);

inline void operator >>=(PortableServer::IdUniquenessPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::IdUniquenessPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::UNIQUE_ID:

    case PortableServer::MULTIPLE_ID:


    _e = (PortableServer::IdUniquenessPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::IdUniquenessPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::IdUniquenessPolicyValue& _s);

inline void operator >>=(PortableServer::IdAssignmentPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::IdAssignmentPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::USER_ID:

    case PortableServer::SYSTEM_ID:


    _e = (PortableServer::IdAssignmentPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::IdAssignmentPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::IdAssignmentPolicyValue& _s);

inline void operator >>=(PortableServer::ImplicitActivationPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::ImplicitActivationPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::IMPLICIT_ACTIVATION:

    case PortableServer::NO_IMPLICIT_ACTIVATION:


    _e = (PortableServer::ImplicitActivationPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::ImplicitActivationPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::ImplicitActivationPolicyValue& _s);

inline void operator >>=(PortableServer::ServantRetentionPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::ServantRetentionPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::RETAIN:

    case PortableServer::NON_RETAIN:


    _e = (PortableServer::ServantRetentionPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::ServantRetentionPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::ServantRetentionPolicyValue& _s);

inline void operator >>=(PortableServer::RequestProcessingPolicyValue _e, cdrStream& s) {
  ::operator>>=((CORBA::ULong)_e, s);
}

inline void operator <<= (PortableServer::RequestProcessingPolicyValue& _e, cdrStream& s) {
  CORBA::ULong _0RL_e;
  ::operator<<=(_0RL_e,s);
  switch (_0RL_e) {
    case PortableServer::USE_ACTIVE_OBJECT_MAP_ONLY:

    case PortableServer::USE_DEFAULT_SERVANT:

    case PortableServer::USE_SERVANT_MANAGER:


    _e = (PortableServer::RequestProcessingPolicyValue) _0RL_e;
    break;
  default:
    OMNIORB_THROW(MARSHAL,_OMNI_NS(MARSHAL_InvalidEnumValue),
                  (CORBA::CompletionStatus)s.completion());
  }
}

void operator<<=(CORBA::Any& _a, PortableServer::RequestProcessingPolicyValue _s);
CORBA::Boolean operator>>=(const CORBA::Any& _a, PortableServer::RequestProcessingPolicyValue& _s);

#endif