src/bucket/Bucket.cpp
Bucket::OutputIterator::OutputIterator(std::string const& tmpDir,
                                       bool keepDeadEntries)
    : mFilename(randomBucketName(tmpDir))
    , mBuf(nullptr)
    , mHasher(SHA256::create())
    , mKeepDeadEntries(keepDeadEntries)
{
    CLOG(TRACE, "Bucket") << "Bucket::OutputIterator opening file to write: "
                          << mFilename;
    mOut.open(mFilename);
}
/**
 * Helper class that points to an output tempfile. Absorbs BucketEntries and
 * hashes them while writing to either destination. Produces a Bucket when done.
 */
Helper class that points to an output tempfile. Absorbs BucketEntries and
hashes them while writing to either destination. Produces a Bucket when done.
Helper class that points to an output tempfile . Absorbs BucketEntries and hashes them while writing to either destination . Produces a Bucket when done .
Bucket::OutputIterator::OutputIterator(std::string const& tmpDir,
                                       bool keepDeadEntries)
    : mFilename(randomBucketName(tmpDir))
    , mBuf(nullptr)
    , mHasher(SHA256::create())
    , mKeepDeadEntries(keepDeadEntries)
{
    CLOG(TRACE, "Bucket") << "Bucket::OutputIterator opening file to write: "
                          << mFilename;
    mOut.open(mFilename);
}
Bucket :: OutputIterator :: OutputIterator ( std :: string const & tmpDir , bool keepDeadEntries ) : mFilename ( randomBucketName ( tmpDir ) ) , mBuf ( nullptr ) , mHasher ( SHA256 :: create ( ) ) , mKeepDeadEntries ( keepDeadEntries ) { CLOG ( TRACE , " " ) << " " << mFilename ; mOut . open ( mFilename ) ; }
Helper class that points to an output tempfile.
Helper class that points to an output tempfile .