4 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
5 // TAO and the TAO IDL Compiler have been developed by the Center for
6 // Distributed Object Computing at Washington University, St. Louis.
8 // Information about TAO is available at:
9 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
11 #include "AMH_Messenger_i.h"
13 // Implementation skeleton constructor
14 AMH_Messenger_i::AMH_Messenger_i ()
18 // Implementation skeleton destructor
19 AMH_Messenger_i::~AMH_Messenger_i ()
24 AMH_Messenger_i::send_message (
25 DevGuide::AMH_MessengerResponseHandler_ptr _tao_rh
,
26 const char * user_name
,
31 std::cout
<< "Message from: " << user_name
<< std::endl
;
32 std::cout
<< "Subject: " << subject
<< std::endl
;
33 std::cout
<< "Message: " << message
<< std::endl
;
34 CORBA::String_var inout_message_arg
=
35 CORBA::string_dup("Thanks for the message.");
36 CORBA::Boolean result
= true;
38 _tao_rh
->send_message(result
,inout_message_arg
.inout ());