Deepsolver
Classes | Public Member Functions
PackageScopeContentBuilder Class Reference
Inheritance diagram for PackageScopeContentBuilder:
AbstractPackageRecipient

List of all members.

Classes

struct  PkgInfo
struct  RelInfo

Public Member Functions

void commit ()
void onNewPkgFile (const PkgFile &pkgFile)
 Accepts new package file entry.
void saveToFile (const std::string &fileName) const
 Saves prepared package scope content to binary file on disk.

Member Function Documentation

void PackageScopeContentBuilder::onNewPkgFile ( const PkgFile pkgFile) [virtual]

This method is called each time new package file information is available.

Parameters:
[in]pkgFileThe newly available package file entry

Implements AbstractPackageRecipient.

void PackageScopeContentBuilder::saveToFile ( const std::string &  fileName) const

This method can perform complete saving of all internal data to file on disk for further loading with PackageScopeContentLoader class. Since data is saved in binary format the created file is not protected from different binary data representation on various machines (little endian vs big endian) and is suited only for using on the same computer it was saved.

Parameters:
[in]fileNameThe name of the file to save data to