Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / PICurrent / Messenger_i.cpp
blob576ff21b0fc75c36d56af918c2ff1ead11b2120b
1 /* -*- C++ -*- */
3 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
4 // TAO and the TAO IDL Compiler have been developed by the Center for
5 // Distributed Object Computing at Washington University, St. Louis.
6 //
7 // Information about TAO is available at:
8 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
10 #include "Messenger_i.h"
11 #include "ace/OS_NS_time.h"
12 #include <iostream>
14 // Implementation skeleton constructor
15 Messenger_i::Messenger_i ()
19 // Implementation skeleton destructor
20 Messenger_i::~Messenger_i ()
24 CORBA::Boolean Messenger_i::send_message (
25 const char * user_name,
26 const char * subject,
27 char *& message)
30 //Add your implementation here
31 std::cerr << "Message from: " << user_name << std::endl;
32 std::cerr << "Subject: " << subject << std::endl;
33 std::cerr << "Message: " << message << std::endl;
34 return true;
37 char * Messenger_i::get_time ()
39 time_t thetime;
40 struct tm * timeinfo = 0;
42 ACE_OS::time(&thetime);
43 timeinfo = ACE_OS::localtime(&thetime);
44 char *timestring = CORBA::string_dup(ACE_OS::asctime(timeinfo));
46 return timestring;