#include <UB_String_Argument_T.h>
Inheritance diagram for TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >:
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_ |
Definition at line 60 of file UB_String_Argument_T.h.
|
Definition at line 28 of file UB_String_Argument_T.inl.
00030 : In_UB_String_Argument_T<S_var,Insert_Policy> (x), 00031 is_clone_ (false) 00032 { 00033 } |
|
Definition at line 39 of file UB_String_Argument_T.cpp.
|
|
Template method to clone a TAO Argument.
Reimplemented from TAO::Argument. Definition at line 52 of file UB_String_Argument_T.cpp. References TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::is_clone_, ACE_OS::strlen(), and ACE_OS::strncpy().
00053 { 00054 size_t len = ACE_OS::strlen (this->x_); 00055 typename S_var::s_traits::char_type * clone_x = 00056 new typename S_var::s_traits::char_type [len + 1]; 00057 ACE_OS::strncpy (clone_x, this->x_, len); 00058 clone_x[len] = '\0'; 00059 In_UB_String_Clonable_Argument_T<S_var,Insert_Policy>* clone_arg = 00060 new In_UB_String_Clonable_Argument_T<S_var,Insert_Policy> (clone_x); 00061 clone_arg->is_clone_ = true; 00062 return clone_arg; 00063 } |
|
Definition at line 70 of file UB_String_Argument_T.h. Referenced by TAO::In_UB_String_Clonable_Argument_T< S_var, Insert_Policy >::clone(). |