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.

57 lines
1.3 KiB

  1. /*++
  2. // Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
  3. Module Name:
  4. ASSOCQP.H
  5. Abstract:
  6. WQL association query parser
  7. History:
  8. raymcc 04-Jul-99 Created.
  9. raymcc 14-Aug-99 Resubmit due to VSS problem.
  10. --*/
  11. #ifndef _ASSOCQP_H_
  12. #define _ASSOCQP_H_
  13. class CAssocQueryParser : public SWbemAssocQueryInf
  14. {
  15. public:
  16. CAssocQueryParser();
  17. ~CAssocQueryParser();
  18. HRESULT Parse(LPCWSTR Query);
  19. // Parses both query and target object path.
  20. // Returns:
  21. // WBEM_E_INVALID_QUERY on syntax error
  22. // WBEM_E_INVALID_OBJECT_PATH if the object
  23. // path is syntactically invalid.
  24. // WBEM_E_OUT_OF_MEMORY
  25. // WBEM_S_NO_ERROR
  26. LPCWSTR GetQueryText() { return m_pszQueryText; }
  27. LPCWSTR GetTargetObjPath() { return m_pszPath; }
  28. LPCWSTR GetResultClass() { return m_pszResultClass; }
  29. LPCWSTR GetAssocClass() { return m_pszAssocClass; }
  30. LPCWSTR GetRole() { return m_pszRole; }
  31. LPCWSTR GetResultRole() { return m_pszResultRole; }
  32. LPCWSTR GetRequiredQual() { return m_pszRequiredQualifier; }
  33. LPCWSTR GetRequiredAssocQual() { return m_pszRequiredAssocQualifier; }
  34. DWORD GetQueryType() { return m_uFeatureMask; }
  35. };
  36. #endif