Poco::OSP

class BundleFile

Library: OSP
Package: Bundle
Header: Poco/OSP/BundleFile.h

Description

BundleFile implements the BundleStorage interface for bundles stored in Zip files.

Inheritance

Direct Base Classes: BundleStorage

All Base Classes: BundleStorage, Poco::RefCountedObject

Member Summary

Member Functions: getResource, isSubdirectoryOf, list, path

Inherited Functions: duplicate, getResource, list, path, referenceCount, release

Constructors

BundleFile

BundleFile(
    const std::string & path
);

Creates the BundleFile, using the given path which must specify a Zip file.

Destructor

~BundleFile protected virtual

~BundleFile();

Destroys the BundleDirectory.

Member Functions

getResource virtual

std::istream * getResource(
    const std::string & path
) const;

See also: Poco::OSP::BundleStorage::getResource()

list virtual

void list(
    const std::string & path,
    std::vector < std::string > & files
) const;

See also: Poco::OSP::BundleStorage::list()

path virtual

std::string path() const;

See also: Poco::OSP::BundleStorage::path()

isSubdirectoryOf protected

bool isSubdirectoryOf(
    const std::string & dir,
    const std::string & parent
) const;

Returns true iff dir is a subdirectory of parent.