=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tests / Big_Request_Muxing / Payload_Receiver.cpp
blobf901863619d5109b496a159893b761f4b8ff9213
1 #include "Payload_Receiver.h"
3 Payload_Receiver::Payload_Receiver ()
4 : message_count_ (0)
5 , maybe_lost_count_ (0)
9 void
10 Payload_Receiver::more_data (
11 const Test::Payload& payload,
12 CORBA::Boolean maybe_lost)
14 if (payload.length() > 0)
16 if (maybe_lost)
18 ++this->maybe_lost_count_;
20 else
22 ++this->message_count_;
27 void
28 Payload_Receiver::ping ()
32 int
33 Payload_Receiver::count (bool maybe_lost) const
35 return (maybe_lost) ?
36 maybe_lost_count_.value ()
37 : message_count_.value ();