blob: 1026ed5775dfac8b909c15c9eff7caca285221d0 (
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 Search_Struct.h
*
* @author Douglas C. Schmidt
*/
//=============================================================================
#ifndef _SEARCH_STRUCT_H
#define _SEARCH_STRUCT_H
#include "Protocol_Record.h"
/**
* @class Search_Struct
*
* @brief Provides an "Abstract Base Class" lookup table abstraction that
* stores and manipulates friend records.
*/
class Search_Struct
{
public:
Search_Struct ();
virtual ~Search_Struct ();
virtual int n_elems ();
virtual Protocol_Record *insert (const char *key_name,
int max_len = MAXUSERIDNAMELEN) = 0;
virtual Protocol_Record *get_next_entry () = 0;
virtual Protocol_Record *get_each_entry () = 0;
protected:
int count_;
};
#endif /* _SEARCH_STRUCT_H */
|