Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / DevGuideExamples / GettingStarted / Messenger_i.cpp
blob4ce8f917281b3eea76b68d501f47d477258df257
1 #include "started_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 "Messenger_i.h"
12 #include <iostream>
13 // Implementation skeleton constructor
14 Messenger_i::Messenger_i ()
18 // Implementation skeleton destructor
19 Messenger_i::~Messenger_i ()
23 CORBA::Boolean
24 Messenger_i::send_message (
25 const char * user_name,
26 const char * subject,
27 char *& message)
29 std::cout << "Message from: " << user_name << std::endl;
30 std::cout << "Subject: " << subject << std::endl;
31 std::cout << "Message: " << message << std::endl;
32 CORBA::string_free(message);
33 message = CORBA::string_dup("Thanks for the message.");
34 return true;