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.

47 lines
976 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * rct30Nov92 entered into system
  7. * pcy04Dec92: Added apc.h and renamed object.h to apc.h
  8. * ane11Dec92: Added copy constructor and made inheritance from Obj public
  9. * pcy17Dec92: Changes to get cfgmgr to work
  10. * rct20Feb93: Added ItemEqual method
  11. *
  12. */
  13. #ifndef __TATTRIB_H
  14. #define __TATTRIB_H
  15. #include "apc.h"
  16. #include "apcobj.h"
  17. _CLASSDEF(TAttribute);
  18. class TAttribute : public Obj {
  19. private:
  20. PCHAR theItem;
  21. PCHAR theValue;
  22. public:
  23. TAttribute( PCHAR anItem, PCHAR aValue = NULL );
  24. TAttribute( RTAttribute anAttr );
  25. virtual ~TAttribute();
  26. const PCHAR GetItem() const { return theItem; };
  27. const PCHAR GetValue() const { return theValue; };
  28. VOID SetValue( PCHAR );
  29. INT ItemEqual( RObj ) const;
  30. virtual INT Equal( RObj ) const;
  31. virtual INT IsA() const { return TATTRIBUTE; };
  32. };
  33. #endif