Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Collocated_Arguments_Converter.h
blob84a8e0e7e78a91626e89718efd8443766b4afcdd
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Collocated_Arguments_Converter.h
7 * @author Yan Dai <dai_y@ociweb.com>
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 */
10 //=============================================================================
13 #ifndef TAO_COLLOCATED_ARGUMENTS_CONVERTER_H
14 #define TAO_COLLOCATED_ARGUMENTS_CONVERTER_H
16 #include /**/ "ace/pre.h"
18 #include "portableserver_export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/TAO_Server_Request.h"
25 #include "tao/CDR.h"
26 #include "ace/Service_Object.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 namespace TAO
32 /**
33 * @class Collocated_Arguments_Converter
35 * @brief Collocated_Arguments_Converter.
37 * Abstract class that convert arguments in the case of a collocated call.
39 class TAO_PortableServer_Export Collocated_Arguments_Converter :
40 public ACE_Service_Object
42 public:
43 virtual ~Collocated_Arguments_Converter ();
45 virtual void convert_request (TAO_ServerRequest & server_request,
46 TAO::Argument * const args[],
47 size_t nargs) = 0;
49 virtual void dsi_convert_request (TAO_ServerRequest & server_request,
50 TAO_OutputCDR & output) = 0;
52 virtual void convert_reply (TAO_ServerRequest & server_request,
53 TAO::Argument * const args[],
54 size_t nargs) = 0;
56 virtual void dsi_convert_reply (TAO_ServerRequest & server_request,
57 TAO_InputCDR & input) = 0;
59 virtual void handle_corba_exception (TAO_ServerRequest & server_request,
60 CORBA::Exception *exception) = 0;
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #include /**/ "ace/post.h"
66 #endif /* TAO_COLLOCATED_ARGUMENTS_CONVERTER_H */