Updated logging to include the class/method so that it is more obvious where these...
[ACE_TAO.git] / TAO / tao / PortableServer / Operation_Table_Linear_Search.h
blob4fa853eca8beca1d474cf2407fd674da9e898285
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Operation_Table_Linear_Search.h
7 * @author Aniruddha Gokhale
8 */
9 //=============================================================================
11 #ifndef TAO_OPERATION_TABLE_LINEAR_SEARCH_H
12 #define TAO_OPERATION_TABLE_LINEAR_SEARCH_H
14 #include /**/ "ace/pre.h"
16 #include "tao/PortableServer/portableserver_export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/PortableServer/Operation_Table.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @class TAO_Linear_Search_OpTable
29 * @brief Operation table lookup strategy based on
30 * linear search. Not efficient, but it works.
32 class TAO_PortableServer_Export TAO_Linear_Search_OpTable
33 : public TAO_Operation_Table
35 public:
36 /// Destructor.
37 ~TAO_Linear_Search_OpTable ();
39 /// See the documentation in the base class for details.
40 virtual int find (const char *opname,
41 TAO_Skeleton &skel_ptr,
42 const unsigned int length = 0);
44 virtual int find (const char *opname,
45 TAO_Collocated_Skeleton &skelfunc,
46 TAO::Collocation_Strategy s,
47 const unsigned int length = 0);
49 virtual int bind (const char *opname,
50 const TAO::Operation_Skeletons skelptr);
52 private:
53 // = Method that should defined by the subclasses. GPERF program
54 // will generate this routine routines.
55 virtual const TAO_operation_db_entry* lookup (const char *str) = 0;
58 TAO_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
61 #endif /* TAO_OPERATION_TABLE_LINEAR_SEARCH_H */