Source code of Windows XP (NT5)
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.

58 lines
1.2 KiB

  1. /*
  2. * REVISIONS:
  3. * ane11Dec92: Minor type casting changes
  4. * pcy14Dec92: Removes const from GetAssoc so it will compile
  5. * ane16Dec92: Added destructor
  6. * rct19Jan93: modified constructors & destructors
  7. *
  8. */
  9. //
  10. // This is the header file for item codes held by the config mgr
  11. //
  12. // R. Thurston
  13. //
  14. //
  15. #ifndef __ITEMCODE_H
  16. #define __ITEMCODE_H
  17. extern "C" {
  18. #include <string.h>
  19. }
  20. #include "tattrib.h"
  21. _CLASSDEF( ItemCode )
  22. class ItemCode : public Obj {
  23. private:
  24. INT theCode;
  25. PCHAR theComponent;
  26. PCHAR theItem;
  27. PCHAR theDefaultValue;
  28. public:
  29. ItemCode( INT aCode, PCHAR aComponent, PCHAR anItem,
  30. PCHAR aDefault = NULL );
  31. ItemCode( INT aCode ) : theCode(aCode), theComponent((PCHAR) NULL), theItem((PCHAR) NULL), theDefaultValue((PCHAR) NULL) {};
  32. virtual ~ItemCode();
  33. const PCHAR GetComponent() const { return theComponent; };
  34. const PCHAR GetItem() const { return theItem; };
  35. const INT GetCode() const { return theCode; };
  36. const PCHAR GetDefaultValue() const { return theDefaultValue; };
  37. virtual INT Equal( RObj ) const;
  38. virtual INT IsA() const { return ITEMCODE; };
  39. };
  40. #endif