RT_PolicyFactory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file     RT_PolicyFactory.h
00006  *
00007  *  $Id: RT_PolicyFactory.h 81429 2008-04-24 18:49:54Z johnnyw $
00008  *
00009  *  @author  Angelo Corsaro <corsaro@cs.wustl.edu>
00010  *  @author  Ossama Othman <ossama@uci.edu>
00011  */
00012 //=============================================================================
00013 
00014 
00015 #ifndef TAO_RT_POLICY_FACTORY_H
00016 #define TAO_RT_POLICY_FACTORY_H
00017 
00018 #include /**/ "ace/pre.h"
00019 
00020 #include "tao/orbconf.h"
00021 
00022 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00023 
00024 #include "tao/RTCORBA/rtcorba_export.h"
00025 
00026 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00027 # pragma once
00028 #endif /* ACE_LACKS_PRAGMA_ONCE */
00029 
00030 #include "tao/PI/PI.h"
00031 #include "tao/LocalObject.h"
00032 
00033 // This is to remove "inherits via dominance" warnings from MSVC.
00034 // MSVC is being a little too paranoid.
00035 #if defined(_MSC_VER)
00036 #pragma warning(push)
00037 #pragma warning(disable:4250)
00038 #endif /* _MSC_VER */
00039 
00040 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00041 
00042 /// Policy factory for all RTCORBA related policies.
00043 class TAO_RT_PolicyFactory
00044   : public virtual PortableInterceptor::PolicyFactory,
00045     public virtual ::CORBA::LocalObject
00046 {
00047 public:
00048 
00049   CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
00050                                    const CORBA::Any &value
00051                                    );
00052 
00053   CORBA::Policy_ptr _create_policy (CORBA::PolicyType type
00054                                     );
00055 };
00056 
00057 TAO_END_VERSIONED_NAMESPACE_DECL
00058 
00059 #if defined(_MSC_VER)
00060 #pragma warning(pop)
00061 #endif /* _MSC_VER */
00062 
00063 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
00064 
00065 #include /**/ "ace/post.h"
00066 
00067 #endif /* TAO_RT_POLICY_FACTORY_H */

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7