CacheStore.cc File Reference

#include <sqlite3.h>
#include <map>
#include "zypp/cache/sqlite3x/sqlite3x.hpp"
#include "zypp/base/Easy.h"
#include "zypp/base/LogTools.h"
#include "zypp/base/Measure.h"
#include "zypp/ZYppFactory.h"
#include "zypp/ZYpp.h"
#include "zypp/Package.h"
#include "zypp/cache/CacheInitializer.h"
#include "zypp/cache/CacheStore.h"
#include "zypp/cache/CacheException.h"
#include "zypp/cache/CacheAttributes.h"

Go to the source code of this file.

Namespaces

namespace  zypp
namespace  zypp::cache

Classes

struct  zypp::cache::CacheStore::Impl

Defines

#define appendOnMediaLocation(ID, OMLATTRPREFIX, OML)
 Append OnMediaLocation attributes to resolvable with ID.

Typedefs

typedef shared_ptr
< sqlite3_command
zypp::cache::sqlite3_command_ptr


Define Documentation

#define appendOnMediaLocation ( ID,
OMLATTRPREFIX,
OML   ) 

Value:

do {                                                                                             \
  appendNumericAttribute( ID, OMLATTRPREFIX##MediaNr(),          OML.medianr() );                \
  appendStringAttribute ( ID, OMLATTRPREFIX##Filename(),         OML.filename().asString() );    \
  appendNumericAttribute( ID, OMLATTRPREFIX##DownloadSize(),     OML.downloadSize() );           \
  appendStringAttribute ( ID, OMLATTRPREFIX##ChecksumType(),     OML.checksum().type() );        \
  appendStringAttribute ( ID, OMLATTRPREFIX##Checksum(),         OML.checksum().checksum() );    \
  appendNumericAttribute( ID, OMLATTRPREFIX##OpenSize(),         OML.openSize() );               \
  appendStringAttribute ( ID, OMLATTRPREFIX##OpenChecksumType(), OML.openChecksum().type() );    \
  appendStringAttribute ( ID, OMLATTRPREFIX##OpenChecksum(),     OML.openChecksum().checksum() );\
} while(false)
Append OnMediaLocation attributes to resolvable with ID.

 appendOnMediaLocation( pkgid, attrPackageLocation, package->repositoryLocation );
Pass the OnMediaLocation attributes common prefix as 2nd arg, the OnMediaLocation object as third arg. This macro assumes that the attribute names follow this schema:

Definition at line 32 of file CacheStore.cc.

Referenced by zypp::cache::CacheStore::consumeScript(), and zypp::cache::CacheStore::consumeSourcePackage().


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