summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/LoadBalancing/Hasher_i.h
blob: 96e3392e2df56943d4b3c708fe3d64a78b68e335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -*- C++ -*-

//=============================================================================
/**
 * @file Hasher_i.h
 *
 * $Id$
 *
 * @author Ossama Othman <ossama@uci.edu>
 */
//=============================================================================

#ifndef TAO_HASHER_I_H
#define TAO_HASHER_I_H

#include "HasherS.h"

/**
 * @class Hasher_i
 *
 * @brief Simple implementation of the "Hasher" interface.
 *
 * This implementation simply invokes the hash utility functions in
 * the ACE class (i.e. those in `ace/ACE.h').
 */
class Hasher_i
  : public virtual POA_Hasher
{
public:

  /// Perform a simple hashing operation on the input string and
  /// return the computed hash.
  virtual CORBA::ULong hash_string (const char * str,
                                    CORBA::Environment &ACE_TRY_ENV =
                                      TAO_default_environment ())
    ACE_THROW_SPEC ((CORBA::SystemException));

//   /// Shutdown the ORB.
//   virtual void shutdown (CORBA::Environment &ACE_TRY_ENV =
//                            TAO_default_environment ())
//     ACE_THROW_SPEC ((CORBA::SystemException));

};

#endif  /* TAO_HASHER_I_H */