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
33 Policy (CORBA::ULong val
);
35 /// Test method defined in test IDL.
36 virtual CORBA::ULong
value ();
38 virtual CORBA::PolicyType
policy_type ();
40 virtual CORBA::Policy_ptr
copy ();
42 virtual void destroy ();
47 * Protected destructor to enforce proper memory management through
48 * the reference counting mechanism.
53 /// Pseudo-reference to the ORB.
54 const CORBA::ULong value_
;