//*-- Author : Valeriy Onuchin 11/09/2000 
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooQuery corresponds to ooQuery class
//
// Class rooQuery supports iteration over sequences of objects that are not
// directly supported by the Objectivity/DB predicate query feature. For
// example, you can use rooQuery to iterate over a VArray of object
// references, such as ooVArray(ooRef( userClass)).

#include "rooObjy.h"
#include <oo.h>
#include <ooUserOper.h>

ClassImp(rooQuery)

//______________________________________________________________________________
 rooQuery::rooQuery()
{
   // ctor

   fImp = new ooQuery();
}

//______________________________________________________________________________
 Bool_t rooQuery::setup(const TString& predicate,Int_t typeN, void*)
{
   // Sets the predicate string, type number, and user operator set for the
   // query.

   fImp->setup((char*)predicate.Data(),(ooTypeNumber)typeN);
}

//______________________________________________________________________________
 Bool_t rooQuery::evaluate(rooObj& obj)
{
   // Returns kTRUE if object is a match for predicate defined by
   // rooQuery::setup, and kFALSE otherwise.

   ooHandle(ooObj)* ho = (ooHandle(ooObj)*)obj.getImp();
   fImp->evaluate(*ho);
}



ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.