diff options
Diffstat (limited to 'TAO/examples/Simulator/DOVEMIB/any_test_i.cpp')
-rw-r--r-- | TAO/examples/Simulator/DOVEMIB/any_test_i.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp b/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp deleted file mode 100644 index a92950b03af..00000000000 --- a/TAO/examples/Simulator/DOVEMIB/any_test_i.cpp +++ /dev/null @@ -1,63 +0,0 @@ -// $Id$ -// ============================================================================ -// -// = LIBRARY -// -// = FILENAME -// any_test_i.cpp -// -// = AUTHOR -// Michael Kircher -// -// ============================================================================ - -#include "tao/corba.h" -#include "ace/Containers.h" -#include "any_test_i.h" -#include "NavWeapC.h" -#include "AnyAnalyser.h" - - -// Constructor -Any_Test_i::Any_Test_i (const char *obj_name) -{ -} - -// Destructor -Any_Test_i::~Any_Test_i (void) -{ -} - - -void -Any_Test_i::try_an_any (const CORBA::Any &a, CORBA::Environment &env) -{ - TAO_TRY - { - ACE_DEBUG ((LM_DEBUG, "Call to try_an_any succeeded!\n")); - - AnyAnalyser anyAnalyser_ = AnyAnalyser ("stdout"); - - TAO_CHECK_ENV; - Weapons *weapons_ = 0; - if (a.type()->equal(_tc_Weapons,TAO_TRY_ENV)) { - - CORBA::Any b; - b = a; - weapons_ = (Weapons *)b.value(); - cout << "ID: " << a.type()->id(TAO_TRY_ENV) << endl; - cout << "CompTime: " << weapons_->computation_time << endl; - cout << "Adr number of weapons: " << &(weapons_->number_of_weapons) << endl; - cout << "Adr CompTime: " << &(weapons_->computation_time) << endl; - } - - anyAnalyser_.printAny (a.type(), a.value()); - } - TAO_CATCHANY - { - ACE_ERROR ((LM_ERROR, "(%t)Error in extracting the data.\n")); - } - TAO_ENDTRY; -} - - |