summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/AMI_Latency/Roundtrip.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-05-09 22:38:26 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-05-09 22:38:26 +0000
commit2b753f9b1abf9ff537a51d500af9752bd4e92758 (patch)
tree71da99410307a2754d4ebb9449d0cc1661f32688 /TAO/performance-tests/AMI_Latency/Roundtrip.h
parent48bf35a29ace976fa3a9ad741e46fe14f11d8e44 (diff)
downloadATCD-2b753f9b1abf9ff537a51d500af9752bd4e92758.tar.gz
ChangeLogTag:Wed May 9 15:36:46 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/performance-tests/AMI_Latency/Roundtrip.h')
-rw-r--r--TAO/performance-tests/AMI_Latency/Roundtrip.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/performance-tests/AMI_Latency/Roundtrip.h b/TAO/performance-tests/AMI_Latency/Roundtrip.h
new file mode 100644
index 00000000000..5cc06d55013
--- /dev/null
+++ b/TAO/performance-tests/AMI_Latency/Roundtrip.h
@@ -0,0 +1,46 @@
+//
+// $Id$
+//
+
+#ifndef ROUNDTRIP_H
+#define ROUNDTRIP_H
+#include "ace/pre.h"
+
+#include "TestS.h"
+
+#if defined (_MSC_VER)
+# if (_MSC_VER >= 1200)
+# pragma warning(push)
+# endif /* _MSC_VER >= 1200 */
+# pragma warning (disable:4250)
+#endif /* _MSC_VER */
+
+/// Implement the Test::Roundtrip interface
+class Roundtrip
+ : public virtual POA_Test::Roundtrip
+ , public virtual PortableServer::RefCountServantBase
+{
+public:
+ /// Constructor
+ Roundtrip (CORBA::ORB_ptr orb);
+
+ // = The skeleton methods
+ virtual Test::Timestamp test_method (Test::Timestamp send_time,
+ CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void shutdown (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+private:
+ /// Use an ORB reference to conver strings to objects and shutdown
+ /// the application.
+ CORBA::ORB_var orb_;
+};
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1200)
+# pragma warning(pop)
+#endif /* _MSC_VER */
+
+#include "ace/post.h"
+#endif /* ROUNDTRIP_H */