diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-15 00:29:15 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-15 00:29:15 +0000 |
commit | 73de7e1f2e721ca0b18c774b62cbd19cd67307c7 (patch) | |
tree | d1424e0cb07342aef9592c359bb31df40e9d82b9 /TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h | |
parent | ab7a97b5983964a3e27c5ec97c9f1622493b2978 (diff) | |
download | ATCD-73de7e1f2e721ca0b18c774b62cbd19cd67307c7.tar.gz |
ChangeLogTag: Tue Nov 14 18:21:29 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h new file mode 100644 index 00000000000..c70ca559a9c --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h @@ -0,0 +1,63 @@ +// -*- C++ -*- +// +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// FT_PolicyFactory.h +// +// = AUTHOR +// Bala Natarajan <bala@cs.wustl.edu> +// +// ============================================================================ + +#ifndef TAO_FT_POLICY_FACTORY_H +#define TAO_FT_POLICY_FACTORY_H + +#include "ace/pre.h" + +#include "tao/corbafwd.h" + + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/PortableInterceptorC.h" +#include "tao/LocalObject.h" + +// This is to remove "inherits via dominance" warnings from MSVC. +// MSVC is being a little too paranoid. +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif /* _MSC_VER >= 1200 */ +#pragma warning(disable:4250) +#endif /* _MSC_VER */ + +/// Policy factory for all RTCORBA related policies. +class TAO_Export TAO_FT_PolicyFactory : + public PortableInterceptor::PolicyFactory, + public TAO_Local_RefCounted_Object +{ +public: + + virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type, + const CORBA::Any &value + TAO_ENV_ARG_DECL_WITH_DEFAULTS) + ACE_THROW_SPEC ((CORBA::SystemException, + CORBA::PolicyError)); +}; + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif /* _MSC_VER */ + + +#include "ace/post.h" + +#endif /* TAO_FT_POLICY_FACTORY_H */ |