diff options
Diffstat (limited to 'TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h')
-rw-r--r-- | TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h new file mode 100644 index 00000000000..4f3a9666ba2 --- /dev/null +++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Stock_Factory_Locator_i.h @@ -0,0 +1,39 @@ +// +// $Id$ +// + +#ifndef STOCK_FACTORY_LOCATOR_I_H +#define STOCK_FACTORY_LOCATOR_I_H + +#include "tao/ORB.h" +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/ServantLocatorC.h" + +class Quoter_Stock_Factory_Locator_i : public PortableServer::ServantLocator +{ + public: + Quoter_Stock_Factory_Locator_i (CORBA::ORB_ptr orb); + + // Preinvoke function + virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid, + PortableServer::POA_ptr poa, + const char * operation, + void * & cookie + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + throw (CORBA::SystemException, PortableServer::ForwardRequest); + + // Postinvoke function + virtual void postinvoke (const PortableServer::ObjectId & oid, + PortableServer::POA_ptr poa, + const char * operation, + void * cookie, + PortableServer::Servant servant + ACE_ENV_ARG_DECL_WITH_DEFAULTS) + throw (CORBA::SystemException); + + private: + CORBA::ORB_var orb_; + +}; + +#endif /* STOCK_FACTORY_LOCATOR_I_H */ |