blob: 0a0e2d732a0429a7f76136964e5a511eb62200a4 (
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
|
// $Id$
#include "orbsvcs/orbsvcs/FtRtecEventChannelAdminC.h"
#include "ProxySupplierStateWorker.h"
#include "orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h"
#include "orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h"
ACE_RCSID (EventChannel,
ProxySupplierStateWorker,
"$Id$")
ProxySupplierStateWorker::ProxySupplierStateWorker
(FtRtecEventChannelAdmin::ProxySupplierStates& states)
: supplierStates_(states)
{
}
ProxySupplierStateWorker::~ProxySupplierStateWorker()
{
}
void ProxySupplierStateWorker::set_size(size_t size)
{
supplierStates_.length(size);
index_ = 0;
}
void ProxySupplierStateWorker::work(TAO_EC_ProxyPushSupplier* object
ACE_ENV_ARG_DECL_NOT_USED)
{
TAO_FTEC_ProxyPushSupplier* proxy =
static_cast<TAO_FTEC_ProxyPushSupplier*>(object);
proxy->get_state(supplierStates_[index_++]);
}
|