summaryrefslogtreecommitdiff
path: root/ACE/TAO/tao/PortableServer/Upcall_Command.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tao/PortableServer/Upcall_Command.h')
-rw-r--r--ACE/TAO/tao/PortableServer/Upcall_Command.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/ACE/TAO/tao/PortableServer/Upcall_Command.h b/ACE/TAO/tao/PortableServer/Upcall_Command.h
new file mode 100644
index 00000000000..8ba85735a94
--- /dev/null
+++ b/ACE/TAO/tao/PortableServer/Upcall_Command.h
@@ -0,0 +1,58 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Upcall_Command.h
+ *
+ * $Id$
+ *
+ * @author Ossama Othman
+ */
+//=============================================================================
+
+#ifndef TAO_UPCALL_COMMAND_H
+#define TAO_UPCALL_COMMAND_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/PortableServer/portableserver_export.h"
+
+#ifndef ACE_LACKS_PRAGMA_ONCE
+# pragma once
+#endif /* !ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/Versioned_Namespace.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+ /**
+ * @class Upcall_Command
+ *
+ * @brief "ABC" that all operation-specific command objects must
+ * subclass.
+ *
+ * The actual upcall into a servant is executed through a concrete
+ * @c Upcall_Command object. This is necessary to simplify upcall
+ * interactions in the presence of interceptors, such as when the
+ * @c send_exception() interception point must be invoked when the
+ * servant operation throws an exception.
+ */
+ class TAO_PortableServer_Export Upcall_Command
+ {
+ public:
+ /// Destructor.
+ virtual ~Upcall_Command (void);
+
+ /// Execute the upcall.
+ virtual void execute (void) = 0;
+ };
+
+} // End namespace TAO
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_UPCALL_COMMAND_H */