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.

52 lines
654 B

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. NODE.H
  5. Abstract:
  6. Declares the CNode class
  7. History:
  8. a-davj 1-July-97 Created.
  9. --*/
  10. #ifndef _Node_H_
  11. #define _Node_H_
  12. #include <wbemcomn.h>
  13. class CValue
  14. {
  15. public:
  16. CValue(TCHAR * pName, DWORD dwType, DWORD dwDataSize, BYTE * pData);
  17. ~CValue();
  18. private:
  19. TCHAR * m_pName;
  20. DWORD m_dwType;
  21. DWORD m_dwDataSize;
  22. BYTE * m_pData;
  23. };
  24. class CNode
  25. {
  26. public:
  27. CNode();
  28. ~CNode();
  29. DWORD AddSubNode(CNode * pAdd);
  30. DWORD AddValue(CValue *);
  31. DWORD CompareAndReportDiffs(CNode * pComp);
  32. private:
  33. CFlexArray m_SubNodes;
  34. CFlexArray m_Values;
  35. };
  36. #endif