Public Member Functions | Private Attributes

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

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

#include <BD_String_SArgument_T.h>

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

List of all members.

Public Member Functions

 Ret_BD_String_SArgument_T (void)
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 *& arg (void)

Private Attributes

S_var x_

Detailed Description

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

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

Definition at line 114 of file BD_String_SArgument_T.h.


Constructor & Destructor Documentation

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

Definition at line 75 of file BD_String_SArgument_T.inl.

{}


Member Function Documentation

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

Definition at line 84 of file BD_String_SArgument_T.inl.

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

template<typename S_var , size_t BOUND, template< typename > class Insert_Policy>
void TAO::Ret_BD_String_SArgument_T< S_var, BOUND, Insert_Policy >::interceptor_value ( CORBA::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 152 of file BD_String_SArgument_T.cpp.

{
  typedef typename S_var::s_traits::from_type from_type;
  Insert_Policy<from_type>::any_insert (
      any,
      from_type (this->x_.in (), BOUND)
    );
}

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

{
  if (this->x_.in () != 0 && ACE_OS::strlen (this->x_.in ()) > BOUND)
    {
      throw ::CORBA::BAD_PARAM ();
    }
  return cdr << this->x_.in ();
}


Member Data Documentation

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

Definition at line 126 of file BD_String_SArgument_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines