Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Command.cpp
blobc90be14789cc242b0138f75ab872b4cf5e524912
1 #include "Command.h"
3 #include "tao/Exception.h"
4 #include "tao/Environment.h"
6 #include "ace/Log_Msg.h"
9 TAO_Notify_Tests_Command::TAO_Notify_Tests_Command ()
10 :next_ (0), command_ (INVALID)
14 TAO_Notify_Tests_Command::~TAO_Notify_Tests_Command ()
18 void
19 TAO_Notify_Tests_Command::init (ACE_Arg_Shifter& /*arg_shifter*/)
21 // default: do nothing.
24 void
25 TAO_Notify_Tests_Command::next (TAO_Notify_Tests_Command* command)
27 this->next_ = command;
30 void
31 TAO_Notify_Tests_Command::execute ()
33 if (this->command_ == INVALID)
35 ACE_DEBUG ((LM_DEBUG, "Invalid command: %s\n", this->get_name ()));
37 else
39 ACE_DEBUG ((LM_DEBUG, "Executing command: %s\n", this->get_name ()));
41 try
43 this->execute_i ();
45 catch (const CORBA::Exception& ex)
47 ex._tao_print_exception (
48 ACE_TEXT(
49 "Error: Exception running command\n"));
53 if (this->next_)
54 this->next_->execute ();