Template class for IN unbounded (w)string argument. More...
#include <UB_String_Argument_T.h>


Public Member Functions | |
| In_UB_String_Clonable_Argument_T (const typename S_var::s_traits::char_type *x) | |
| virtual | ~In_UB_String_Clonable_Argument_T (void) |
| virtual Argument * | clone (void) |
| Template method to clone a TAO Argument. | |
Private Attributes | |
| bool | is_clone_ |
Template class for IN unbounded (w)string argument.
Definition at line 61 of file UB_String_Argument_T.h.
| TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::In_UB_String_Clonable_Argument_T | ( | const typename S_var::s_traits::char_type * | x | ) |
Definition at line 28 of file UB_String_Argument_T.inl.
: In_UB_String_Argument_T<S_var,Insert_Policy> (x),
is_clone_ (false)
{
}
| TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::~In_UB_String_Clonable_Argument_T | ( | void | ) | [virtual] |
Definition at line 39 of file UB_String_Argument_T.cpp.
{
if (this->is_clone_)
{
typename S_var::s_traits::char_type * tmp =
const_cast<typename S_var::s_traits::char_type *> (this->x_);
delete [] tmp;
}
}
| TAO::Argument * TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::clone | ( | void | ) | [virtual] |
Template method to clone a TAO Argument.
Reimplemented from TAO::Argument.
Definition at line 52 of file UB_String_Argument_T.cpp.
{
size_t const len = ACE_OS::strlen (this->x_);
typename S_var::s_traits::char_type * clone_x =
new typename S_var::s_traits::char_type [len + 1];
ACE_OS::strncpy (clone_x, this->x_, len);
clone_x[len] = '\0';
In_UB_String_Clonable_Argument_T<S_var,Insert_Policy>* clone_arg =
new In_UB_String_Clonable_Argument_T<S_var,Insert_Policy> (clone_x);
clone_arg->is_clone_ = true;
return clone_arg;
}
bool TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::is_clone_ [private] |
Definition at line 71 of file UB_String_Argument_T.h.
1.7.0