home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / LazyScrollDir / NameCache.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-08  |  1.4 KB  |  47 lines

  1. #ifndef __NameCache_h
  2. #define __NameCache_h
  3. //=============================================================================
  4. //
  5. //        Copyright (C) 1995,1996 by Paul S. McCarthy and Eric Sunshine.
  6. //                Written by Paul S. McCarthy and Eric Sunshine.
  7. //                            All Rights Reserved.
  8. //
  9. //        This notice may not be removed from this source code.
  10. //
  11. //        This object is included in the MiscKit by permission from the authors
  12. //        and its use is governed by the MiscKit license, found in the file
  13. //        "License.rtf" in the MiscKit distribution.    Please refer to that file
  14. //        for a list of all applicable permissions and restrictions.
  15. //
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // NameCache.h
  19. //
  20. //        Data structure and routines for caching user names and group names.
  21. //
  22. //-----------------------------------------------------------------------------
  23. //-----------------------------------------------------------------------------
  24. // $Id$
  25. // $Log$
  26. //-----------------------------------------------------------------------------
  27.  
  28. #import <appkit/appkit.h>
  29.  
  30. @interface NameCache : Object
  31.     {
  32.     HashTable* table;
  33.     };
  34. - (char const*) lookup:(int)ident;
  35. @end
  36.  
  37.  
  38. @interface OwnerCache : NameCache        // user name (owner) cache.
  39. + commonInstance;
  40. @end
  41.  
  42. @interface GroupCache : NameCache        // group name cache.
  43. + commonInstance;
  44. @end
  45.  
  46. #endif // __NameCache_h
  47.