Template class for IN bounded (w)string argument. More...
#include <BD_String_Argument_T.h>
Public Member Functions | |
In_BD_String_Clonable_Argument_T (const typename S_var::s_traits::char_type *x) | |
virtual | ~In_BD_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 bounded (w)string argument.
Definition at line 67 of file BD_String_Argument_T.h.
TAO::In_BD_String_Clonable_Argument_T< S_var, BOUND, Insert_Policy >::In_BD_String_Clonable_Argument_T | ( | const typename S_var::s_traits::char_type * | x | ) |
Definition at line 31 of file BD_String_Argument_T.inl.
: In_BD_String_Argument_T<S_var,BOUND,Insert_Policy> (x),
is_clone_ (false)
{}
TAO::In_BD_String_Clonable_Argument_T< S_var, BOUND, Insert_Policy >::~In_BD_String_Clonable_Argument_T | ( | void | ) | [virtual] |
Definition at line 49 of file BD_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_BD_String_Clonable_Argument_T< S_var, BOUND, Insert_Policy >::clone | ( | void | ) | [virtual] |
Template method to clone a TAO Argument.
Reimplemented from TAO::Argument.
Definition at line 63 of file BD_String_Argument_T.cpp.
{ typename S_var::s_traits::char_type * clone_x = new typename S_var::s_traits::char_type [BOUND]; ACE_OS::strncpy (clone_x, this->x_, BOUND); In_BD_String_Clonable_Argument_T<S_var,BOUND,Insert_Policy>* clone_arg = new In_BD_String_Clonable_Argument_T<S_var,BOUND,Insert_Policy> (clone_x); clone_arg->is_clone_ = true; return clone_arg; }
bool TAO::In_BD_String_Clonable_Argument_T< S_var, BOUND, Insert_Policy >::is_clone_ [private] |
Definition at line 76 of file BD_String_Argument_T.h.