TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy > Class Template Reference

Template class for return stub value of bd (w)string argument. More...

#include <BD_String_Argument_T.h>

Inheritance diagram for TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Ret_BD_String_Argument_T (void)
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)
S_var::s_traits::char_type * excp (void)
S_var::s_traits::char_type * retn (void)

Private Attributes

S_var x_

Detailed Description

template<typename S_var, size_t BOUND, class Insert_Policy>
class TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >

Template class for return stub value of bd (w)string argument.

Definition at line 137 of file BD_String_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_var, size_t BOUND, class Insert_Policy>
ACE_INLINE TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::Ret_BD_String_Argument_T ( void   ) 

Definition at line 87 of file BD_String_Argument_T.inl.

00088 {
00089 }


Member Function Documentation

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

Definition at line 116 of file BD_String_Argument_T.inl.

References TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_.

00117 {
00118   return this->x_.out ();
00119 }

template<typename S_var, size_t BOUND, class Insert_Policy>
CORBA::Boolean TAO::Ret_BD_String_Argument_T< S_var, BOUND, 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 155 of file BD_String_Argument_T.cpp.

00158 {
00159   typedef typename S_var::s_traits::to_type to_type;
00160   return cdr >> to_type (this->x_.out (), BOUND);
00161 }

template<typename S_var, size_t BOUND, class Insert_Policy>
ACE_INLINE S_var::s_traits::char_type * TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::excp ( void   ) 

Definition at line 96 of file BD_String_Argument_T.inl.

References TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_.

00097 {
00098   return this->x_.ptr ();
00099 }

template<typename S_var, size_t BOUND, class Insert_Policy>
void TAO::Ret_BD_String_Argument_T< S_var, BOUND, 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 169 of file BD_String_Argument_T.cpp.

00171 {
00172   typedef typename S_var::s_traits::from_type from_type;
00173   Insert_Policy::any_insert (
00174       any,
00175       from_type (this->x_.in (), BOUND)
00176     );
00177 }

template<typename S_var, size_t BOUND, class Insert_Policy>
ACE_INLINE S_var::s_traits::char_type * TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::retn ( void   ) 

Definition at line 106 of file BD_String_Argument_T.inl.

References TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_.

00107 {
00108   return this->x_._retn ();
00109 }


Member Data Documentation

template<typename S_var, size_t BOUND, class Insert_Policy>
S_var TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_ [private]

Definition at line 152 of file BD_String_Argument_T.h.

Referenced by TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::arg(), TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::excp(), and TAO::Ret_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::retn().


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