Public Member Functions | Private Attributes

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

Template class for IN skeleton bd (w)string argument. More...

#include <BD_String_SArgument_T.h>

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

List of all members.

Public Member Functions

 In_BD_String_SArgument_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.
const S_var::s_traits::char_type * arg (void) const

Private Attributes

S_var x_

Detailed Description

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

Template class for IN skeleton bd (w)string argument.

Definition at line 41 of file BD_String_SArgument_T.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file BD_String_SArgument_T.inl.

{}


Member Function Documentation

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

Definition at line 21 of file BD_String_SArgument_T.inl.

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

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

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

template<typename S_var , size_t BOUND, template< typename > class Insert_Policy>
void TAO::In_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 36 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));
}


Member Data Documentation

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

Definition at line 53 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