blob: b9190335beb11e682f2d09c41252d406c5ff46b5 (
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
|
#ifndef TAO_TUTORIAL_QUOTER_RT_EVENT_SERVICE_STOCK_I_H
#define TAO_TUTORIAL_QUOTER_RT_EVENT_SERVICE_STOCK_I_H
#include "QuoterS.h"
#include <orbsvcs/RtecEventCommS.h>
#include <orbsvcs/RtecEventChannelAdminC.h>
class Quoter_Stock_i
: public virtual POA_Quoter::Modify_Stock
{
public:
Quoter_Stock_i (const char *symbol,
const char *full_name,
CORBA::Double price);
~Quoter_Stock_i ();
char *symbol ();
char *full_name ();
CORBA::Double price ();
void set_price (CORBA::Double new_price);
void disconnect_push_supplier ();
void connect (RtecEventChannelAdmin::SupplierAdmin_ptr supplier_admin);
private:
Quoter::Event data_;
RtecEventChannelAdmin::ProxyPushConsumer_var consumer_proxy_;
POA_RtecEventComm::PushSupplier_tie<Quoter_Stock_i> &supplier_personality_;
};
#endif /* TAO_TUTORIAL_QUOTER_RT_EVENT_SERVICE_STOCK_I_H */
|