ResolvableQuery.h File Reference

#include <set>
#include <list>
#include <vector>
#include "zypp/base/Function.h"
#include "zypp/Pathname.h"
#include "zypp/data/ResolvableData.h"
#include "zypp/data/RecordId.h"
#include "zypp/cache/Attribute.h"
#include "zypp/ZConfig.h"

Go to the source code of this file.

Namespaces

namespace  zypp
namespace  zypp::cache

Classes

struct  zypp::cache::ResolvableQuery
 The resolvable query class allows you to query for resolvable data and properties from the cache. More...

Defines

#define queryOnMediaLocation(RESQUERY, ID, OMLATTRPREFIX, OML)
 Query OnMediaLocation attributes for resolvable with ID.

Typedefs

typedef function
< bool(const
data::RecordId &,
data::ResObject_Ptr)> 
zypp::cache::ProcessResolvable
 Callback definition first parameter is the resolvable id.

Variables

const int zypp::cache::MATCH_EXACT = 0x00
const int zypp::cache::MATCH_LEADING = 0x01
const int zypp::cache::MATCH_TRAILING = 0x02
const int zypp::cache::MATCH_SUBSTRING = (MATCH_LEADING|MATCH_TRAILING)
const int zypp::cache::MATCH_REGEXP = 0x04
const int zypp::cache::MATCH_NAME = 0x08
const int zypp::cache::MATCH_SUMMARY = 0x10
const int zypp::cache::MATCH_DESCRIPTION = 0x20
const int zypp::cache::MATCH_WILDCARDS = (MATCH_SUBSTRING|MATCH_REGEXP)
const int zypp::cache::MATCH_FIELDS = (MATCH_NAME|MATCH_SUMMARY|MATCH_DESCRIPTION)


Define Documentation

#define queryOnMediaLocation ( RESQUERY,
ID,
OMLATTRPREFIX,
OML   ) 

Value:

do {                                                                                                     \
  OML.setLocation( RESQUERY.queryStringAttribute( ID, OMLATTRPREFIX##Filename() ),                       \
                   RESQUERY.queryNumericAttribute( ID, OMLATTRPREFIX##MediaNr() ) );                     \
  OML.setChecksum( CheckSum( RESQUERY.queryStringAttribute( ID, OMLATTRPREFIX##ChecksumType() ),         \
                             RESQUERY.queryStringAttribute( ID, OMLATTRPREFIX##Checksum() ) ) );         \
  OML.setDownloadSize( RESQUERY.queryNumericAttribute( ID, OMLATTRPREFIX##DownloadSize() ) );            \
  OML.setOpenChecksum( CheckSum( RESQUERY.queryStringAttribute( ID, OMLATTRPREFIX##OpenChecksumType() ), \
                                 RESQUERY.queryStringAttribute( ID, OMLATTRPREFIX##OpenChecksum() ) ) ); \
  OML.setOpenSize( RESQUERY.queryNumericAttribute( ID, OMLATTRPREFIX##OpenSize() ) );                    \
} while(false)
Query OnMediaLocation attributes for resolvable with ID.

 queryOnMediaLocation( _repository->resolvableQuery(), pkgid, attrPackageLocation, _location );
Passt the ResolvableQuery as 1st arg, the resolvable id as 2nd, the OnMediaLocation attributes common prefix as 3nd arg, the OnMediaLocation object as 4th arg.

Definition at line 22 of file ResolvableQuery.h.

Referenced by zypp::repo::cached::ScriptImpl::doScriptLocation(), zypp::repo::cached::SrcPackageImpl::location(), zypp::repo::cached::PackageImpl::location(), and zypp::repo::cached::ScriptImpl::undoScriptLocation().


Generated on Tue Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3