summaryrefslogtreecommitdiff
path: root/TAO/tao/Collocation_Strategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Collocation_Strategy.h')
-rw-r--r--TAO/tao/Collocation_Strategy.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/TAO/tao/Collocation_Strategy.h b/TAO/tao/Collocation_Strategy.h
new file mode 100644
index 00000000000..236149a387b
--- /dev/null
+++ b/TAO/tao/Collocation_Strategy.h
@@ -0,0 +1,48 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Collocation_Strategy.h
+ *
+ * $Id$
+ *
+ * @author DOC Group - Wash U and UCI
+ */
+//=============================================================================
+
+#ifndef TAO_COLLOCATION_STRATEGY_H
+#define TAO_COLLOCATION_STRATEGY_H
+
+#include /**/ "ace/pre.h"
+#include "tao/orbconf.h"
+#include "tao/Versioned_Namespace.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+/// Define symbolic names for the ORB collocation strategies.
+namespace TAO
+{
+ enum Collocation_Strategy
+ {
+ /// i.e no collocation.
+ TAO_CS_REMOTE_STRATEGY,
+
+ /// Calls to the collocated object are forwarded by the POA.
+ TAO_CS_THRU_POA_STRATEGY,
+
+ /// Calls to the collocated object are made directly to its
+ /// servant.
+ TAO_CS_DIRECT_STRATEGY,
+
+ /// This value should always be the last value in the enumeration.
+ /// It provides the count for the number of collocation
+ /// strategies.
+ TAO_CS_LAST
+ };
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_COLLOCATION_STRATEGY_H */