windows-nt/Source/XPSP1/NT/admin/wmi/wbem/common/wmiutils/assocqp.h

58 lines
1.3 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
// Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
Module Name:
ASSOCQP.H
Abstract:
WQL association query parser
History:
raymcc 04-Jul-99 Created.
raymcc 14-Aug-99 Resubmit due to VSS problem.
--*/
#ifndef _ASSOCQP_H_
#define _ASSOCQP_H_
class CAssocQueryParser : public SWbemAssocQueryInf
{
public:
CAssocQueryParser();
~CAssocQueryParser();
HRESULT Parse(LPCWSTR Query);
// Parses both query and target object path.
// Returns:
// WBEM_E_INVALID_QUERY on syntax error
// WBEM_E_INVALID_OBJECT_PATH if the object
// path is syntactically invalid.
// WBEM_E_OUT_OF_MEMORY
// WBEM_S_NO_ERROR
LPCWSTR GetQueryText() { return m_pszQueryText; }
LPCWSTR GetTargetObjPath() { return m_pszPath; }
LPCWSTR GetResultClass() { return m_pszResultClass; }
LPCWSTR GetAssocClass() { return m_pszAssocClass; }
LPCWSTR GetRole() { return m_pszRole; }
LPCWSTR GetResultRole() { return m_pszResultRole; }
LPCWSTR GetRequiredQual() { return m_pszRequiredQualifier; }
LPCWSTR GetRequiredAssocQual() { return m_pszRequiredAssocQualifier; }
DWORD GetQueryType() { return m_uFeatureMask; }
};
#endif