Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tests / GIOP_Fragments / PMB_With_Fragments / Payload_Receiver.cpp
blob04ebeb029e2bdc7501bb6bf02fee401a9e5ddca8
1 #include "Payload_Receiver.h"
3 Payload_Receiver::Payload_Receiver (CORBA::ORB_ptr orb)
4 : count_ (0),
5 orb_(CORBA::ORB::_duplicate (orb))
9 void
10 Payload_Receiver::more_data (const Test::Payload &payload)
12 ++this->count_;
14 CORBA::ULong length = payload.length ();
15 for (CORBA::ULong i = 0; i < length; ++i)
17 if (payload[i] != 'A')
19 throw Test::Payload_Receiver::Invalid_Payload ();
25 void
26 Payload_Receiver::shutdown ()
28 this->orb_->shutdown (false);
32 int
33 Payload_Receiver::get_count () const
35 return count_;