Template class for INOUT bounded (w)string argument. More...
#include <BD_String_Argument_T.h>


Public Member Functions | |
| Inout_BD_String_Argument_T (typename S_var::s_traits::char_type *&x) | |
| virtual CORBA::Boolean | marshal (TAO_OutputCDR &cdr) |
| Marshal the argument into the given CDR output stream. | |
| virtual CORBA::Boolean | demarshal (TAO_InputCDR &cdr) |
| Demarshal the argument from the given CDR input stream. | |
| S_var::s_traits::char_type *& | arg (void) |
Private Attributes | |
| S_var::s_traits::char_type *& | x_ |
Template class for INOUT bounded (w)string argument.
Definition at line 88 of file BD_String_Argument_T.h.
| TAO::Inout_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::Inout_BD_String_Argument_T | ( | typename S_var::s_traits::char_type *& | x | ) | [inline] |
Definition at line 45 of file BD_String_Argument_T.inl.
00046 : x_ (x) 00047 {}
| S_var::s_traits::char_type *& TAO::Inout_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::arg | ( | void | ) | [inline] |
Definition at line 54 of file BD_String_Argument_T.inl.
00055 { 00056 return this->x_; 00057 }
| CORBA::Boolean TAO::Inout_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::demarshal | ( | TAO_InputCDR & | ) | [inline, virtual] |
Demarshal the argument from the given CDR input stream.
true. Reimplemented from TAO::Argument.
Definition at line 96 of file BD_String_Argument_T.cpp.
00099 { 00100 S_var tmp = this->x_; 00101 CORBA::Boolean const demarshalled = cdr >> this->x_; 00102 if (this->x_ != 0 && ACE_OS::strlen (this->x_) > BOUND) 00103 { 00104 S_var for_deletion = this->x_; 00105 this->x_ = tmp._retn (); 00106 throw ::CORBA::BAD_PARAM (); 00107 } 00108 return demarshalled; 00109 }
| CORBA::Boolean TAO::Inout_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::marshal | ( | TAO_OutputCDR & | cdr | ) | [inline, virtual] |
Marshal the argument into the given CDR output stream.
true. Reimplemented from TAO::Argument.
Definition at line 81 of file BD_String_Argument_T.cpp.
00084 { 00085 if (this->x_ != 0 && ACE_OS::strlen (this->x_) > BOUND) 00086 { 00087 throw ::CORBA::BAD_PARAM (); 00088 } 00089 return cdr << this->x_; 00090 }
S_var::s_traits::char_type*& TAO::Inout_BD_String_Argument_T< S_var, BOUND, Insert_Policy >::x_ [private] |
Definition at line 101 of file BD_String_Argument_T.h.
1.6.1