Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / DevGuideExamples / AMH / AMH_Messenger_i.cpp
blob25dfe5dfa713fdf73c814e83e405a1c88f87b4f6
1 #include "amh_pch.h"
2 /* -*- C++ -*- */
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.
7 //
8 // Information about TAO is available at:
9 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
11 #include "AMH_Messenger_i.h"
12 #include <iostream>
13 // Implementation skeleton constructor
14 AMH_Messenger_i::AMH_Messenger_i ()
18 // Implementation skeleton destructor
19 AMH_Messenger_i::~AMH_Messenger_i ()
23 void
24 AMH_Messenger_i::send_message (
25 DevGuide::AMH_MessengerResponseHandler_ptr _tao_rh,
26 const char * user_name,
27 const char * subject,
28 const char * message
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 ());