/*
* WMPQuery.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2011/12/07
#pragma once
#include <sol/wmp/WMPObject.h>
namespace SOL {
class WMPQuery :public WMPObject {
private:
IWMPQueryPtr query;
public:
WMPQuery(IWMPQueryPtr ptr)
:query(ptr)
{
if(ptr == NULL) {
throw NullPointerException("IWMPQueryPtr is NULL", 0);
}
}
public:
~WMPQuery()
{
query = NULL;
}
public:
HRESULT addCondition(
_bstr_t bstrAttribute,
_bstr_t bstrOperator,
_bstr_t bstrValue)
{
return query->addCondition(
bstrAttribute,
bstrOperator,
bstrValue);
}
HRESULT beginNextGroup()
{
return query-> beginNextGroup();
}
};
}
|