Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Service_Context_Handler.h
blobe38d4a9da5077e33838b15691e61d51579bec417
1 // -*- C++ -*-
3 // ===================================================================
4 /**
5 * @file Service_Context_Handler.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 // ===================================================================
11 #ifndef TAO_SERVICE_CONTEXT_HANDLER_H
12 #define TAO_SERVICE_CONTEXT_HANDLER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/IOPC.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 class TAO_Transport;
25 class TAO_Operation_Details;
26 class TAO_Target_Specification;
27 class TAO_Stub;
28 class TAO_ServerRequest;
30 /**
31 * This is the base of handler classes that each can process a certain
32 * service context. This way optional libraries can plugin handlers to the
33 * core of TAO. Each handler has to be registered in the Service Context
34 * Handler registry
36 class TAO_Export TAO_Service_Context_Handler
38 public:
39 TAO_Service_Context_Handler ();
40 virtual int process_service_context (
41 TAO_Transport& transport,
42 const IOP::ServiceContext& context,
43 TAO_ServerRequest *request) = 0;
45 virtual int generate_service_context (
46 TAO_Stub *stub,
47 TAO_Transport& transport,
48 TAO_Operation_Details &opdetails,
49 TAO_Target_Specification &spec,
50 TAO_OutputCDR &msg) = 0;
52 virtual ~TAO_Service_Context_Handler ();
55 TAO_END_VERSIONED_NAMESPACE_DECL
57 #include /**/ "ace/post.h"
59 #endif /* TAO_SERVICE_CONTEXT_HANDLER_H */