
#include <iostream>
#include <string>
#include <exception>

#include "Query.h"
#include "Olap.h"

using namespace std;

void main()
{
	try
	{
		Olap olap;

		Query* q=new Query("!id[1,2]&!id[1,2]");
		cout<<"count:"<<olap.count(q)<<endl;
		delete q;//remove garbage
	}
	catch(exception& e)
	{
		cout<<e.what()<<endl;
	}
	system("pause");
}

