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 ()
19 TAO_Notify_Tests_Command::init (ACE_Arg_Shifter
& /*arg_shifter*/)
21 // default: do nothing.
25 TAO_Notify_Tests_Command::next (TAO_Notify_Tests_Command
* command
)
27 this->next_
= command
;
31 TAO_Notify_Tests_Command::execute ()
33 if (this->command_
== INVALID
)
35 ACE_DEBUG ((LM_DEBUG
, "Invalid command: %s\n", this->get_name ()));
39 ACE_DEBUG ((LM_DEBUG
, "Executing command: %s\n", this->get_name ()));
45 catch (const CORBA::Exception
& ex
)
47 ex
._tao_print_exception (
49 "Error: Exception running command\n"));
54 this->next_
->execute ();