/*++ Copyright (c) 2000-2001 Microsoft Corporation Module Name: queryhelper.h Abstract: Definition of: CQueryHelper Author: Mohit Srivastava 22-Mar-2001 Revision History: --*/ #ifndef _queryhelper_h_ #define _queryhelper_h_ #include #include #include #include #include #include "sqllex.h" #include #include #include "wbemservices.h" #include "schema.h" class CQueryHelper { public: CQueryHelper( BSTR i_bstrQueryLanguage, BSTR i_bstrQuery, CWbemServices* i_pNamespace, IWbemObjectSink* i_pResponseHandler); ~CQueryHelper(); void GetAssociations(); void GetInstances(); bool IsAssoc() const { return (m_pWmiAssoc != NULL); } private: WMI_CLASS* m_pWmiClass; WMI_ASSOCIATION* m_pWmiAssoc; CWbemServices* m_pNamespace; CComPtr m_spResponseHandler; SQL_LEVEL_1_RPN_EXPRESSION_EXT* m_pExp; }; #endif