summaryrefslogtreecommitdiff
path: root/trunk/ACE/apps/drwho/Search_Struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/apps/drwho/Search_Struct.h')
-rw-r--r--trunk/ACE/apps/drwho/Search_Struct.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/trunk/ACE/apps/drwho/Search_Struct.h b/trunk/ACE/apps/drwho/Search_Struct.h
new file mode 100644
index 00000000000..c45dcbf6086
--- /dev/null
+++ b/trunk/ACE/apps/drwho/Search_Struct.h
@@ -0,0 +1,41 @@
+/* -*- C++ -*- */
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// drwho
+//
+// = FILENAME
+// Search_Struct.h
+//
+// = AUTHOR
+// Douglas C. Schmidt
+//
+// ============================================================================
+
+#ifndef _SEARCH_STRUCT_H
+#define _SEARCH_STRUCT_H
+
+#include "Protocol_Record.h"
+
+class Search_Struct
+{
+ // = TITLE
+ // Provides an "Abstract Base Class" lookup table abstraction that
+ // stores and manipulates friend records.
+public:
+ Search_Struct (void);
+ virtual ~Search_Struct (void);
+ virtual int n_elems (void);
+
+ virtual Protocol_Record *insert (const char *key_name,
+ int max_len = MAXUSERIDNAMELEN) = 0;
+ virtual Protocol_Record *get_next_entry (void) = 0;
+ virtual Protocol_Record *get_each_entry (void) = 0;
+
+protected:
+ int count_;
+};
+
+#endif /* _SEARCH_STRUCT_H */