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

Template class for OUT bounded (w)string argument. More...

#include <BD_String_Argument_T.h>

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Out_BD_String_Argument_T (typename S_var::s_traits::string_out x)
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, size_t BOUND, class Insert_Policy>
class TAO::Out_BD_String_Argument_T< S_var, BOUND, Insert_Policy >

Template class for OUT bounded (w)string argument.

Definition at line 92 of file BD_String_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_var, size_t BOUND, class Insert_Policy>
ACE_INLINE TAO::Out_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::Out_BD_String_Argument_T typename S_var::s_traits::string_out  x  ) 
 

Definition at line 55 of file BD_String_Argument_T.inl.

00056   : x_ (x.ptr ())
00057 {}


Member Function Documentation

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

Definition at line 64 of file BD_String_Argument_T.inl.

00065 {
00066   return this->x_;
00067 }

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

00098 {
00099   typedef typename S_var::s_traits::to_type to_type;
00100   return cdr >> to_type (this->x_, BOUND);
00101 }

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

00111 {
00112   typedef typename S_var::s_traits::from_type from_type;
00113   Insert_Policy::any_insert (
00114       any,
00115       from_type (this->x_, BOUND)
00116     );
00117 }


Member Data Documentation

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

Definition at line 104 of file BD_String_Argument_T.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:25:54 2006 for TAO by doxygen 1.3.6