Library: OSP
Package: Bundle
Header: Poco/OSP/BundleDirectory.h
BundleDirectory implements the BundleStorage interface for bundles stored in directories.
Direct Base Classes: BundleStorage
All Base Classes: BundleStorage, Poco::RefCountedObject
Member Functions: buildPath, getResource, list, path
Inherited Functions: duplicate, getResource, list, path, referenceCount, release
BundleDirectory(
const std::string & path
);
Creates the BundleDirectory, using the given path which must specify the root directory of the bundle.
~BundleDirectory();
Destroys the BundleDirectory.
std::istream * getResource(
const std::string & path
) const;
See also: Poco::OSP::BundleStorage::getResource()
void list(
const std::string & path,
std::vector < std::string > & files
) const;
See also: Poco::OSP::BundleStorage::list()
std::string path() const;
See also: Poco::OSP::BundleStorage::path()
Poco::Path buildPath(
const std::string & path
) const;
Builds a path to a file or directory inside the bundle by concatenating the bundle's path with the given path, and doing various sanity checks along the way.