Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PolicyFactory / Policy.cpp
blobbd8f1ee2fd152a30795c4450f2ab063e5c5402d3
1 #include "Policy.h"
3 #include "tao/SystemException.h"
4 #include "ace/Log_Msg.h"
6 Policy::Policy (CORBA::ULong val)
7 : value_ (val)
11 Policy::~Policy (void)
15 CORBA::ULong
16 Policy::value (void)
18 return this->value_;
21 CORBA::PolicyType
22 Policy::policy_type (void)
24 return Test::POLICY_TYPE;
27 CORBA::Policy_ptr
28 Policy::copy (void)
30 CORBA::Policy_ptr p;
31 ACE_NEW_THROW_EX (p,
32 Policy (this->value_),
33 CORBA::NO_MEMORY ());
35 return p;
38 void
39 Policy::destroy (void)