Policy_Current.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Policy_Current.h
00006  *
00007  *  $Id: Policy_Current.h 79256 2007-08-08 11:24:06Z johnnyw $
00008  *
00009  * An implementation for the CORBA::PolicyManager interface.
00010  *
00011  *
00012  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00013  */
00014 //=============================================================================
00015 
00016 
00017 #ifndef TAO_POLICY_CURRENT_H
00018 #define TAO_POLICY_CURRENT_H
00019 
00020 #include /**/ "ace/pre.h"
00021 
00022 #include "tao/orbconf.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #if (TAO_HAS_CORBA_MESSAGING == 1)
00029 
00030 #include "tao/Policy_CurrentC.h"
00031 #include "tao/LocalObject.h"
00032 
00033 #if defined(_MSC_VER)
00034 #pragma warning(push)
00035 #pragma warning(disable:4250)
00036 #endif /* _MSC_VER */
00037 
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039 
00040 class TAO_Policy_Current_Impl;
00041 
00042 class TAO_Policy_Current
00043   : public CORBA::PolicyCurrent
00044   , public TAO_Local_RefCounted_Object
00045 {
00046 public:
00047   /// Constructor
00048   TAO_Policy_Current (void);
00049 
00050   /// Obtain a single policy.
00051   CORBA::Policy_ptr get_policy (CORBA::PolicyType policy);
00052 
00053   /// Obtain a single cached policy.
00054   CORBA::Policy_ptr get_cached_policy (TAO_Cached_Policy_Type type);
00055 
00056   // = The CORBA::PolicyManager operations
00057 
00058   virtual CORBA::PolicyList * get_policy_overrides (
00059         const CORBA::PolicyTypeSeq & ts);
00060 
00061   virtual void set_policy_overrides (
00062         const CORBA::PolicyList & policies,
00063         CORBA::SetOverrideType set_add);
00064 
00065   // = Set and get the implementation.
00066   TAO_Policy_Current_Impl &implementation (void) const;
00067   TAO_Policy_Current_Impl &implementation (TAO_Policy_Current_Impl &);
00068 };
00069 
00070 TAO_END_VERSIONED_NAMESPACE_DECL
00071 
00072 #if defined(_MSC_VER)
00073 #pragma warning(pop)
00074 #endif /* _MSC_VER */
00075 
00076 #if defined (__ACE_INLINE__)
00077 # include "tao/Policy_Current.inl"
00078 #endif /* __ACE_INLINE__ */
00079 
00080 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */
00081 
00082 #include /**/ "ace/post.h"
00083 
00084 #endif /* TAO_POLICY_CURRENT_H */

Generated on Sun Jan 27 13:07:35 2008 for TAO by doxygen 1.3.6