diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-23 17:00:00 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-23 17:00:00 +0000 |
commit | 287fa6d8b442a118650877c5b43b7802d2f99305 (patch) | |
tree | 8de6116f35ab63cabe7b93310e4e1afcf26bbc31 /TAO/TAO_IDL/be/be_string.cpp | |
parent | bf12751e22e5d8bc31091b25ccbc4a9c5b1c71a6 (diff) | |
download | ATCD-287fa6d8b442a118650877c5b43b7802d2f99305.tar.gz |
ChangeLogTag: Wed Aug 23 11:53:43 2000 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_string.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_string.cpp | 58 |
1 files changed, 39 insertions, 19 deletions
diff --git a/TAO/TAO_IDL/be/be_string.cpp b/TAO/TAO_IDL/be/be_string.cpp index d4757faec88..2a47aac6607 100644 --- a/TAO/TAO_IDL/be/be_string.cpp +++ b/TAO/TAO_IDL/be/be_string.cpp @@ -19,19 +19,16 @@ // // ============================================================================ -#include "idl.h" -#include "idl_extern.h" -#include "be.h" +#include "idl.h" +#include "idl_extern.h" +#include "be.h" ACE_RCSID(be, be_string, "$Id$") - -/* - * BE_String - */ be_string::be_string (void) { - this->size_type (be_decl::VARIABLE); // always the case + // Always the case. + this->size_type (be_decl::VARIABLE); } be_string::be_string (AST_Expression *v) @@ -44,7 +41,8 @@ be_string::be_string (AST_Expression *v) NULL), NULL) { - this->size_type (be_decl::VARIABLE); // always the case + // Always the case. + this->size_type (be_decl::VARIABLE); } be_string::be_string (AST_Expression *v, @@ -66,25 +64,47 @@ be_string::be_string (AST_Expression *v, NULL), NULL) { - this->size_type (be_decl::VARIABLE); // always the case + // Always the case. + this->size_type (be_decl::VARIABLE); } -// overriden method +// Overriden method. void be_string::compute_tc_name (void) { - // start with the head as the CORBA namespace - this->tc_name_ = new UTL_ScopedName (new Identifier ("CORBA", 1, 0, I_FALSE), - NULL); + // Start with the head as the CORBA namespace. + Identifier *corba_id = 0; + ACE_NEW (corba_id, + Identifier ("CORBA", + 1, + 0, + I_FALSE)); + + ACE_NEW (this->tc_name_, + UTL_ScopedName (corba_id, + 0)); + + Identifier *id = 0; + ACE_NEW (id, + Identifier ("_tc_string", + 1, + 0, + I_FALSE)); + + UTL_ScopedName *conc_name = 0; + ACE_NEW (conc_name, + UTL_ScopedName (id, + 0)); - this->tc_name_->nconc (new UTL_ScopedName (new Identifier ("_tc_string", 1, 0, - I_FALSE), NULL)); + this->tc_name_->nconc (conc_name); } UTL_ScopedName * -be_string::compute_tc_name (const char *prefix, const char *suffix) +be_string::compute_tc_name (const char *prefix, + const char *suffix) { - return be_type::compute_tc_name (prefix, suffix); + return be_type::compute_tc_name (prefix, + suffix); } int @@ -93,6 +113,6 @@ be_string::accept (be_visitor *visitor) return visitor->visit_string (this); } -// Narrowing +// Narrowing. IMPL_NARROW_METHODS2 (be_string, AST_String, be_type) IMPL_NARROW_FROM_DECL (be_string) |