summaryrefslogtreecommitdiff
path: root/ACE/apps/drwho/Single_Lookup.h
blob: cbf0eb249a8eedf5b993d46120e37959bb6ebcb2 (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
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    Single_Lookup.h
 *
 *  $Id$
 *
 *  @author Douglas C. Schmidt
 */
//=============================================================================


#ifndef _SINGLE_LOOKUP_H
#define _SINGLE_LOOKUP_H

#include "Options.h"
#include "Search_Struct.h"

/**
 * @class Single_Lookup
 *
 * Provides the client's single user lookup table abstraction.
 */
class Single_Lookup : public Search_Struct
{
public:
  Single_Lookup (const char *usr_name);
  virtual ~Single_Lookup (void);
  virtual Protocol_Record *insert (const char *key_name,
                                   int max_len = MAXUSERIDNAMELEN) = 0;
  virtual Protocol_Record *get_next_entry (void);
  virtual Protocol_Record *get_each_entry (void);

protected:
  Protocol_Record *prp_;
};

#endif /* _SINGLE_LOOKUP_H */