~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ProxyConsumerStateWorker.cpp,v 1.3 2003/10/17 06:36:28 huangming Exp
2
 
 
3
 
#include "ProxyConsumerStateWorker.h"
4
 
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
5
 
#include "orbsvcs/Event/EC_ProxySupplier.h"
6
 
 
7
 
ACE_RCSID (EventChannel,
8
 
           ProxyConsumerStateWorker,
9
 
           "ProxyConsumerStateWorker.cpp,v 1.3 2003/10/17 06:36:28 huangming Exp")
10
 
 
11
 
ProxyConsumerStateWorker::ProxyConsumerStateWorker
12
 
  (FtRtecEventChannelAdmin::ProxyConsumerStates& states)
13
 
: consumerStates_(states)
14
 
{
15
 
}
16
 
 
17
 
ProxyConsumerStateWorker::~ProxyConsumerStateWorker()
18
 
{
19
 
}
20
 
 
21
 
void ProxyConsumerStateWorker::set_size(size_t size)
22
 
{
23
 
  consumerStates_.length(size);
24
 
  index_ = 0;
25
 
}
26
 
 
27
 
void ProxyConsumerStateWorker::work(TAO_EC_ProxyPushConsumer* object
28
 
            ACE_ENV_ARG_DECL_NOT_USED)
29
 
{
30
 
  TAO_FTEC_ProxyPushConsumer* proxy =
31
 
    static_cast<TAO_FTEC_ProxyPushConsumer*>(object);
32
 
  proxy->get_state(consumerStates_[index_++]);
33
 
}