summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Operation_Table.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tao/PortableServer/Operation_Table.h
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/tao/PortableServer/Operation_Table.h')
-rw-r--r--TAO/tao/PortableServer/Operation_Table.h139
1 files changed, 0 insertions, 139 deletions
diff --git a/TAO/tao/PortableServer/Operation_Table.h b/TAO/tao/PortableServer/Operation_Table.h
deleted file mode 100644
index d573d2c9f8e..00000000000
--- a/TAO/tao/PortableServer/Operation_Table.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Operation_Table.h
- *
- * $Id$
- *
- * @author Aniruddha Gokhale
- */
-//=============================================================================
-
-#ifndef TAO_OPTABLE_H
-#define TAO_OPTABLE_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PortableServer/portableserver_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Object.h"
-#include "tao/Collocation_Strategy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_ServerRequest;
-class TAO_Abstract_ServantBase;
-
-namespace CORBA
-{
- class Environment;
-}
-
-typedef void (*TAO_Skeleton)(
- TAO_ServerRequest &,
- void *,
- void *
-#if !defined (TAO_HAS_EXCEPTIONS) || defined (ACE_ENV_BKWD_COMPAT)
- , CORBA::Environment &
-#endif
- );
-
-typedef void (*TAO_Collocated_Skeleton)(
- TAO_Abstract_ServantBase *,
- TAO::Argument **,
- int
-#if !defined (TAO_HAS_EXCEPTIONS) || defined (ACE_ENV_BKWD_COMPAT)
- , CORBA::Environment &
-#endif
- );
-
-/**
- * @struct TAO_operation_db_entry
- *
- * @brief Define a table entry that holds an operation name and its
- * corresponding skeleton. A table of such entries is used to
- * initialize the different lookup strategies.
- */
-struct TAO_operation_db_entry
-{
- /// Operation name
- char const * opname;
-
- /// Remote/thru-POA skeleton pointer
- TAO_Skeleton skel_ptr;
-
- /// Collocated skeleton pointers.
- TAO_Collocated_Skeleton direct_skel_ptr;
-};
-
-// --------------------------
-
-namespace TAO
-{
- /**
- * @class Operation_Skeleton_Ptr
- *
- * @brief A logical aggregation of all the operation skeleton pointers
- * in use.
- *
- * This is not used by the IDL compiler. This is used internally
- * within different strategies.
- */
- struct Operation_Skeletons
- {
- Operation_Skeletons (void);
-
- /// Remote skeleton pointer
- TAO_Skeleton skel_ptr;
-
- /// Collocated skeleton pointers.
- TAO_Skeleton thruPOA_skel_ptr;
- TAO_Collocated_Skeleton direct_skel_ptr;
- };
-}
-
-/**
- * @class TAO_Operation_Table
- *
- * @brief Abstract class for maintaining and lookup of CORBA IDL
- * operation names.
- */
-class TAO_PortableServer_Export TAO_Operation_Table
-{
-public:
- /**
- * Uses @a opname to look up the skeleton function and pass it back
- * in @a skelfunc. Returns non-negative integer on success, or -1
- * on failure.
- */
- virtual int find (const char *opname,
- TAO_Skeleton &skelfunc,
- const unsigned int length = 0) = 0;
-
- /**
- * Uses @a opname to look up the collocated skeleton function and
- * pass it back in @a skelfunc. Returns non-negative integer on
- * success, or -1 on failure.
- */
- virtual int find (const char *opname,
- TAO_Collocated_Skeleton &skelfunc,
- TAO::Collocation_Strategy s,
- const unsigned int length = 0) = 0;
-
- /// Associate the skeleton @a skel_ptr with an operation named
- /// @a opname. Returns -1 on failure, 0 on success, 1 on duplicate.
- virtual int bind (const char *opname,
- const TAO::Operation_Skeletons skel_ptr) = 0;
-
- virtual ~TAO_Operation_Table (void);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_OPTABLE_H */