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

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

#include <BD_String_Argument_T.h>

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 In_BD_String_Argument_T (const 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 void interceptor_value (CORBA::Any *any) const
 Populate the given CORBA::Any result argument.
S_var::s_traits::char_type
const * 
arg (void) const

Protected Attributes

S_var::s_traits::char_type
const * 
x_

Detailed Description

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

Template class for IN bounded (w)string argument.

Definition at line 41 of file BD_String_Argument_T.h.


Constructor & Destructor Documentation

template<typename S_var, size_t BOUND, class Insert_Policy>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO::In_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::In_BD_String_Argument_T ( const typename S_var::s_traits::char_type *  x  ) 

Definition at line 11 of file BD_String_Argument_T.inl.

00014   : x_ (x)
00015 {}


Member Function Documentation

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

Definition at line 22 of file BD_String_Argument_T.inl.

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

00023 {
00024   return this->x_;
00025 }

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

00034 {
00035   typedef typename S_var::s_traits::from_type from_type;
00036   Insert_Policy::any_insert (
00037       any,
00038       from_type (this->x_, BOUND)
00039     );
00040 }

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

00021 {
00022   typedef typename S_var::s_traits::from_type from_type;
00023   return cdr << from_type (this->x_, BOUND);
00024 }


Member Data Documentation

template<typename S_var, size_t BOUND, class Insert_Policy>
S_var::s_traits::char_type const* TAO::In_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_ [protected]

Definition at line 55 of file BD_String_Argument_T.h.

Referenced by TAO::In_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::arg().


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