Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / DevGuideExamples / Messaging / AMIcallback / Messenger_i.h
blob32dc3a7aa0d7c54bfe9278ed8164a2c18abddd09
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 #ifndef MESSENGER_IMPL_H_
11 #define MESSENGER_IMPL_H_
13 #include "MessengerS.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 #pragma once
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 class Messenger_i : public virtual POA_Messenger
22 public:
23 //Constructor
24 Messenger_i (unsigned int seconds_to_wait = 0,
25 CORBA::Boolean throw_exception = 0);
27 //Destructor
28 virtual ~Messenger_i ();
30 virtual CORBA::Boolean send_message (
31 const char * user_name,
32 const char * subject,
33 char *& message,
34 CORBA::Long_out time_sent
37 private:
38 // Specify an amount of time to wait inside
39 // send_message in order illustrate AMI callback usage
40 unsigned int seconds_to_wait_;
42 // Force an exception to be thrown to test client-side
43 // exception handling
44 CORBA::Boolean throw_exception_;
48 #endif /* MESSENGER_IMPL_H_ */