blob: 951028cf9e47377ae2fd277e9990357954d454e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef MESSENGERHANDLER_H
#define MESSENGERHANDLER_H
#include "MessengerS.h"
class MessengerHandler : public virtual POA_AMI_MessengerHandler
{
public:
//Constructor
MessengerHandler (CORBA::ORB_ptr orb);
//Destructor
virtual ~MessengerHandler (void);
virtual void send_message (
CORBA::Boolean ami_return_val,
const char * message,
CORBA::Long time
);
virtual void send_message_excep (
Messaging::ExceptionHolder * excep_holder
);
int message_was_sent()
{
return time_ > 0;
}
private:
CORBA::Long time_;
CORBA::ORB_var orb_;
};
#endif
|