File Information
Library: OSP
Package: Bundle
Header: Poco/OSP/BundleDirectory.h
Description
BundleDirectory implements the BundleStorage interface for bundles stored in directories.
Inheritance
Direct Base Classes: BundleStorage
All Base Classes: BundleStorage, Poco::RefCountedObject
Member Summary
Member Functions: buildPath, getResource, lastModified, list, path
Inherited Functions: duplicate, getResource, lastModified, list, path, referenceCount, release
Constructors
BundleDirectory
BundleDirectory(
const std::string & path
);
Creates the BundleDirectory, using the given path which must specify the root directory of the bundle.
Destructor
~BundleDirectory
~BundleDirectory();
Destroys the BundleDirectory.
Member Functions
getResource
std::istream * getResource(
const std::string & path
) const;
See also: Poco::OSP::BundleStorage::getResource()
lastModified
Poco::Timestamp lastModified(
const std::string & path
) const;
See also: Poco::OSP::BundleStorage::lastModified()
list
void list(
const std::string & path,
std::vector < std::string > & files
) const;
See also: Poco::OSP::BundleStorage::list()
path
std::string path() const;
See also: Poco::OSP::BundleStorage::path()
buildPath
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.