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.

87 lines
2.0 KiB

  1. /******************************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. WMIParser_ValueReference.cpp
  5. Abstract:
  6. This file contains the implementation of the WMIParser::ValueReference class,
  7. which is used to hold the data of an value reference inside a CIM schema.
  8. Revision History:
  9. Davide Massarenti (Dmassare) 07/01/99
  10. created
  11. ******************************************************************************/
  12. #include "stdafx.h"
  13. WMIParser::ValueReference::ValueReference()
  14. {
  15. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::ValueReference" );
  16. // InstanceName wmipin;
  17. }
  18. WMIParser::ValueReference::~ValueReference()
  19. {
  20. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::~ValueReference" );
  21. }
  22. ////////////////////////////////////////////////
  23. bool WMIParser::ValueReference::operator==( /*[in]*/ ValueReference const &wmipvr ) const
  24. {
  25. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::operator==" );
  26. bool fRes = (m_wmipin == wmipvr.m_wmipin);
  27. __HCP_FUNC_EXIT(fRes);
  28. }
  29. bool WMIParser::ValueReference::operator<( /*[in]*/ ValueReference const &wmipvr ) const
  30. {
  31. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::operator<" );
  32. bool fRes = (m_wmipin < wmipvr.m_wmipin);
  33. __HCP_FUNC_EXIT(fRes);
  34. }
  35. ////////////////////////////////////////////////
  36. HRESULT WMIParser::ValueReference::Parse( /*[in] */ IXMLDOMNode* pxdnNode )
  37. {
  38. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::Parse" );
  39. HRESULT hr;
  40. bool fEmpty;
  41. __MPC_EXIT_IF_METHOD_FAILS(hr, m_wmipin.put_Node( pxdnNode, fEmpty ));
  42. hr = S_OK;
  43. __HCP_FUNC_CLEANUP;
  44. __HCP_FUNC_EXIT(hr);
  45. }
  46. ////////////////////////////////////////////////
  47. HRESULT WMIParser::ValueReference::get_Data( /*[out]*/ InstanceName*& wmipin )
  48. {
  49. __HCP_FUNC_ENTRY( "WMIParser::ValueReference::get_Data" );
  50. HRESULT hr;
  51. wmipin = &m_wmipin;
  52. hr = S_OK;
  53. __HCP_FUNC_EXIT(hr);
  54. }