3 //=============================================================================
7 * Implementation header for the test Policy.
9 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
11 //=============================================================================
17 #include "tao/LocalObject.h"
22 * @brief Implementation of the Test::Policy interface.
24 * This policy merely returns the value that was passed to it when it
28 : public virtual Test::Policy
,
29 public virtual ::CORBA::LocalObject
34 Policy (CORBA::ULong val
);
36 /// Test method defined in test IDL.
37 virtual CORBA::ULong
value (void);
39 virtual CORBA::PolicyType
policy_type (void);
41 virtual CORBA::Policy_ptr
copy (void);
43 virtual void destroy (void);
49 * Protected destructor to enforce proper memory management through
50 * the reference counting mechanism.
56 /// Pseudo-reference to the ORB.
57 const CORBA::ULong value_
;