You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1997.
|
|
//
|
|
// File: qresult.hxx
|
|
//
|
|
// Contents: Storage/picklers for results of a query
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CRestriction;
|
|
class PSerStream;
|
|
class PDeSerStream;
|
|
|
|
class CQueryResults
|
|
{
|
|
public:
|
|
CQueryResults();
|
|
|
|
CQueryResults( PDeSerStream& stream );
|
|
|
|
~CQueryResults();
|
|
|
|
void Serialize( PSerStream & stream ) const;
|
|
|
|
ULONG Size();
|
|
|
|
unsigned Count() {
|
|
return _cWid;
|
|
}
|
|
|
|
WCHAR * Path ( unsigned i ) {
|
|
return _aPath[i];
|
|
}
|
|
|
|
ULONG Rank(unsigned i) {
|
|
return _aRank[i];
|
|
}
|
|
|
|
void Add ( WCHAR *wszPath, ULONG uRank );
|
|
|
|
void SetNotOwnPRst( CRestriction * pRstNew ) {
|
|
pRst = pRstNew;
|
|
_fNotOwnPRst = TRUE;
|
|
}
|
|
|
|
CRestriction* pRst; // The restriction
|
|
|
|
private:
|
|
ULONG _size;
|
|
ULONG _cWid;
|
|
ULONG* _aRank;
|
|
WCHAR ** _aPath;
|
|
|
|
BOOL _fNotOwnPRst;
|
|
};
|
|
|