Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.8 KiB

  1. /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Copyright (c) 1989-1999 Microsoft Corporation
  3. Module Name:
  4. treg.hxx
  5. Abstract:
  6. Type registry for header file generation
  7. Notes:
  8. This file defines type registry for types which require that the header
  9. generator output the prototypes of user supplied routines.
  10. History:
  11. Oct-23-1993 VibhasC Created.
  12. ----------------------------------------------------------------------------*/
  13. /****************************************************************************
  14. * include files
  15. ***************************************************************************/
  16. #ifndef __TREG_HXX__
  17. #define __TREG_HXX__
  18. #include "nulldefs.h"
  19. extern "C"
  20. {
  21. #include <stdio.h>
  22. }
  23. #include "dict.hxx"
  24. #include "listhndl.hxx"
  25. #include "nodeskl.hxx"
  26. /****************************************************************************
  27. * externs
  28. ***************************************************************************/
  29. extern int CompareRegistryKey( void *, void *);
  30. extern void PrintRegistryKey( void * );
  31. /****************************************************************************
  32. * class definitions
  33. ***************************************************************************/
  34. class TREGISTRY : public Dictionary
  35. {
  36. public:
  37. // The constructor and destructors.
  38. TREGISTRY() : Dictionary()
  39. {
  40. }
  41. ~TREGISTRY()
  42. {
  43. }
  44. //
  45. // Register a type.
  46. //
  47. node_skl * Register( node_skl * pNode );
  48. // Search for a type.
  49. node_skl * IsRegistered( node_skl * pNode );
  50. // Get a list of all types.
  51. short GetListOfTypes( ITERATOR& ListIter );
  52. /*** // Comparison function is the default one
  53. virtual
  54. int Compare (pUserType pL, pUserType pR);
  55. ****/
  56. };
  57. #endif // __TREG_HXX__