3 //=============================================================================
5 * @file PolicyFactory.h
7 * Implementation header for the test policy factory.
9 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
11 //=============================================================================
13 #ifndef POLICY_FACTORY_H
14 #define POLICY_FACTORY_H
16 #include "ace/config-all.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/PI/PI.h"
23 #include "tao/LocalObject.h"
27 #pragma warning(disable:4250)
31 * @class PolicyFactory
33 * @brief Simple concrete PolicyFactory.
35 * This is a test PolicyFactory that constructs a Test::Policy
39 : public virtual PortableInterceptor::PolicyFactory
,
40 public virtual ::CORBA::LocalObject
45 * @name Methods Required by the PolicyFactory Interface
47 * These are methods that must be implemented since they are pure
48 * virtual in the abstract base class. They are the canonical
49 * methods required for all PolicyFactory sub-classes.
53 /// Construct a Test::Policy object as a test.
54 virtual CORBA::Policy_ptr
create_policy (CORBA::PolicyType type
,
55 const CORBA::Any
& value
);
65 #endif /* POLICY_FACTORY_H */