blob: 599125a58025545c0c532df17a588d681dc0edc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// -*- C++ -*-
#include "orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h"
#include "orbsvcs/FaultTolerance/FT_ServerPolicy_i.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/PolicyC.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Policy_ptr
TAO_FT_ServerPolicyFactory::create_policy (
CORBA::PolicyType type,
const CORBA::Any &val)
{
if (type == FT::HEARTBEAT_ENABLED_POLICY)
return TAO_FT_Heart_Beat_Enabled_Policy::create (val);
throw CORBA::PolicyError (CORBA::BAD_POLICY_TYPE);
}
TAO_END_VERSIONED_NAMESPACE_DECL
|