diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_global.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_global.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp index 474e853f47d..8c6c14c02e4 100644 --- a/TAO/TAO_IDL/be/be_global.cpp +++ b/TAO/TAO_IDL/be/be_global.cpp @@ -2314,6 +2314,18 @@ BE_GlobalData::gen_lem_force_all (bool val) this->gen_lem_force_all_ = val; } +bool +BE_GlobalData::alt_mapping (void) const +{ + return this->alt_mapping_; +} + +void +BE_GlobalData::alt_mapping (bool val) +{ + this->alt_mapping_ = val; +} + unsigned long BE_GlobalData::tab_size (void) const { @@ -2757,6 +2769,12 @@ BE_GlobalData::parse_args (long &i, char **av) // CIAO servant code generation. be_global->gen_ciao_svnt (true); } + else if (av[i][3] == 't' && av[i][4] == 'l') + { + // Generate code using STL types for strings + // and sequences. + be_global->alt_mapping (true); + } else { ACE_ERROR (( @@ -3688,6 +3706,11 @@ BE_GlobalData::usage (void) const )); ACE_DEBUG (( LM_DEBUG, + ACE_TEXT (" -Gstl\t\t\tGenerate the alternate C++ mapping for") + ACE_TEXT (" IDL strings and sequences\n") + )); + ACE_DEBUG (( + LM_DEBUG, ACE_TEXT (" -Gt\t\t\tenable optimized TypeCode support") ACE_TEXT (" (unopt by default)\n") )); |