diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/PolicyFactory/Policy.cpp')
-rw-r--r-- | TAO/tests/Portable_Interceptors/PolicyFactory/Policy.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/TAO/tests/Portable_Interceptors/PolicyFactory/Policy.cpp b/TAO/tests/Portable_Interceptors/PolicyFactory/Policy.cpp new file mode 100644 index 00000000000..6351d93f35a --- /dev/null +++ b/TAO/tests/Portable_Interceptors/PolicyFactory/Policy.cpp @@ -0,0 +1,48 @@ +// $Id$ + +#include "Policy.h" + +#include "tao/SystemException.h" +#include "ace/Log_Msg.h" + +ACE_RCSID (PolicyFactory, + Policy, + "$Id$") + + +Policy::Policy (CORBA::ULong val) + : value_ (val) +{ +} + +Policy::~Policy (void) +{ +} + +CORBA::ULong +Policy::value (void) +{ + return this->value_; +} + +CORBA::PolicyType +Policy::policy_type (void) +{ + return Test::POLICY_TYPE; +} + +CORBA::Policy_ptr +Policy::copy (void) +{ + CORBA::Policy_ptr p; + ACE_NEW_THROW_EX (p, + Policy (this->value_), + CORBA::NO_MEMORY ()); + + return p; +} + +void +Policy::destroy (void) +{ +} |