summaryrefslogtreecommitdiff
path: root/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h')
-rw-r--r--TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
new file mode 100644
index 00000000000..b9ced6d7672
--- /dev/null
+++ b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h
@@ -0,0 +1,39 @@
+//
+// $Id$
+//
+
+#ifndef PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H
+#define PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H
+#include /**/ "ace/pre.h"
+
+#include "TestS.h"
+
+/// Implement the Test::Payload_Receiver interface
+/**
+ * Simply print count how many bytes were received.
+ */
+class Payload_Receiver
+ : public virtual POA_Test::Payload_Receiver
+{
+public:
+ /// Constructor
+ Payload_Receiver (CORBA::ORB_ptr orb);
+
+ // = The skeleton methods
+ virtual void more_data (const Test::Payload &payload
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Test::Payload_Receiver::Invalid_Payload));
+
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ int get_count (void) const;
+
+public:
+ int count_;
+ CORBA::ORB_var orb_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* PMB_WITH_FRAGMENTS_PAYLOAD_RECEIVER_H */