diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-28 18:31:01 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-10-28 18:31:01 +0000 |
commit | cdb6fd66611283a0314ab23e08472d11dae4f0e4 (patch) | |
tree | fd6ae8c3db752254802dfaafd1543974a4741e47 /TAO/tao/DynamicInterface/DII_Arguments.h | |
parent | f984aa2bff444f381570d2f97ac9ba958926fb6b (diff) | |
download | ATCD-cdb6fd66611283a0314ab23e08472d11dae4f0e4.tar.gz |
ChangeLogTag:Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/DynamicInterface/DII_Arguments.h')
-rw-r--r-- | TAO/tao/DynamicInterface/DII_Arguments.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/TAO/tao/DynamicInterface/DII_Arguments.h b/TAO/tao/DynamicInterface/DII_Arguments.h new file mode 100644 index 00000000000..76646ba1c81 --- /dev/null +++ b/TAO/tao/DynamicInterface/DII_Arguments.h @@ -0,0 +1,98 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file DII_Arguments.h + * + * $Id$ + * + * @authors Jeff Parsons <j.parsons@vanderbilt.edu> + */ +//============================================================================= + + +#ifndef TAO_DII_ARGUMENTS_H +#define TAO_DII_ARGUMENTS_H + +#include /**/ "ace/pre.h" + +#include "tao/Argument.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +namespace CORBA +{ + class NamedValue; + typedef NamedValue *NamedValue_ptr; + + class NVList; + typedef NVList *NVList_ptr; +} + +namespace Dynamic +{ + class ParameterList; +} + +namespace TAO +{ + /** + * @class NamedValue_Argument + * + * @brief Class for the return value of a CORBA::(Server)Request. + * + */ + class NamedValue_Argument : public Argument + { + public: + NamedValue_Argument (CORBA::NamedValue_ptr); + + virtual CORBA::Boolean demarshal (TAO_InputCDR &); + + virtual void interceptor_result (CORBA::Any *); + + int byte_order (void) const; + + private: + CORBA::NamedValue_ptr x_; + + /// Byte order that the Request class will use + int byte_order_; + }; + + /** + * @class NamedValue_Argument + * + * @brief Class for the argument list of a CORBA::(Server)Request. + * + */ + class NVList_Argument : public Argument + { + public: + NVList_Argument (CORBA::NVList_ptr, + bool lazy_eval); + + virtual CORBA::Boolean marshal (TAO_OutputCDR &); + + virtual CORBA::Boolean demarshal (TAO_InputCDR &); + + // Not an override of a base class method, but a new one that + // deals with the argument list as a whole. + void interceptor_paramlist (Dynamic::ParameterList *); + + private: + CORBA::NVList_ptr x_; + + bool lazy_evaluation_; + }; +} + +#if defined (__ACE_INLINE__) +# include "DII_Arguments.inl" +#endif /* __ACE_INLINE__ */ + +#include /**/ "ace/post.h" + +#endif /* TAO_DII_ARGUMENTS_H */ |