TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy > Class Template Reference

Template class for INOUT unbounded (w)string argument. More...

#include <UB_String_Argument_T.h>

Inheritance diagram for TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >:

Inheritance graph
[legend]
Collaboration diagram for TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Inout_UB_String_Argument_T (typename S_var::s_traits::char_type *&x)
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 Marshal the argument into the given CDR output stream.
virtual CORBA::Boolean demarshal (TAO_InputCDR &)
 Demarshal the argument from the given CDR input stream.
virtual void interceptor_value (CORBA::Any *any) const
 Populate the given CORBA::Any result argument.
S_var::s_traits::char_type *& arg (void)

Private Attributes

S_var::s_traits::char_type *& x_

Detailed Description

template<typename S_var, class Insert_Policy>
class TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >

Template class for INOUT unbounded (w)string argument.

Definition at line 81 of file UB_String_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_var, class Insert_Policy>
ACE_INLINE TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::Inout_UB_String_Argument_T ( typename S_var::s_traits::char_type *&  x  ) 

Definition at line 40 of file UB_String_Argument_T.inl.

00042   : x_ (x)
00043 {}


Member Function Documentation

template<typename S_var, class Insert_Policy>
ACE_INLINE S_var::s_traits::char_type *& TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::arg ( void   ) 

Definition at line 49 of file UB_String_Argument_T.inl.

References TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::x_.

00050 {
00051   return this->x_;
00052 }

template<typename S_var, class Insert_Policy>
CORBA::Boolean TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::demarshal ( TAO_InputCDR  )  [virtual]

Demarshal the argument from the given CDR input stream.

Note:
The default implementation simply returns true.

Reimplemented from TAO::Argument.

Definition at line 79 of file UB_String_Argument_T.cpp.

References TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::x_.

00081 {
00082   delete [] this->x_;
00083   return cdr >> this->x_;
00084 }

template<typename S_var, class Insert_Policy>
void TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::interceptor_value ( CORBA::Any *  any  )  const [virtual]

Populate the given CORBA::Any result argument.

Note:
The default implementation is a no-op.

Reimplemented from TAO::Argument.

Definition at line 91 of file UB_String_Argument_T.cpp.

00093 {
00094   Insert_Policy::any_insert (any, this->x_);
00095 }

template<typename S_var, class Insert_Policy>
CORBA::Boolean TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::marshal ( TAO_OutputCDR cdr  )  [virtual]

Marshal the argument into the given CDR output stream.

Note:
The default implementation simply returns true.

Reimplemented from TAO::Argument.

Definition at line 70 of file UB_String_Argument_T.cpp.

References TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::x_.

00072 {
00073   return cdr << this->x_;
00074 }


Member Data Documentation

template<typename S_var, class Insert_Policy>
S_var::s_traits::char_type*& TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::x_ [private]

Definition at line 94 of file UB_String_Argument_T.h.

Referenced by TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::arg(), TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::demarshal(), and TAO::Inout_UB_String_Argument_T< S_var, Insert_Policy >::marshal().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:13 2010 for TAO by  doxygen 1.4.7