diff options
author | sergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-07 00:13:39 +0000 |
---|---|---|
committer | sergio <sergio@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-07 00:13:39 +0000 |
commit | 3c46fa3a56d3193ae10d6719821b2c86ee2b271c (patch) | |
tree | 49bdc4cef320b0419cc95fb98921cac4fd962e35 /TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp | |
parent | ac8c5ebe02f83c6321e2582ab4a28e069e2280b4 (diff) | |
download | ATCD-3c46fa3a56d3193ae10d6719821b2c86ee2b271c.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp')
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp index 51ceb3704f3..bf7b61790c9 100644 --- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp +++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/cubit_i.cpp @@ -55,45 +55,3 @@ void Cubit_i::shutdown (CORBA::Environment &) { TAO_ORB_Core_instance ()->orb ()->shutdown (); } - -// Constructor - -Cubit_Factory_i::Cubit_Factory_i (CORBA::String *cubits, - u_int num_of_objs) - : num_of_objs_ (num_of_objs) -{ - ACE_NEW (my_cubit_, - CORBA::String[num_of_objs_]); - - for (u_int i = 0; - i < num_of_objs_; - ++i) - my_cubit_[i] = ACE_OS::strdup (cubits[i]); -} - -// Destructor - -Cubit_Factory_i::~Cubit_Factory_i (void) -{ -} - -CORBA::String -Cubit_Factory_i::create_cubit (CORBA::UShort orb_index, - CORBA::Environment &env) -{ - // if out of range, return a nil string. - if (orb_index >= num_of_objs_) - { - env.clear (); - env.exception (new CORBA::BAD_PARAM (CORBA::COMPLETED_NO)); - return 0; - } - - ACE_DEBUG ((LM_DEBUG, - "(%P|%t) ior returned is [%d]:<%s>\n", - orb_index, - my_cubit_[orb_index])); - - return ACE_OS::strdup (my_cubit_[orb_index]); -} - |