Poco::OSP

class BundleFile

File Information

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, lastModified, list, path

Inherited Functions: duplicate, getResource, lastModified, 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;

lastModified virtual

Poco::Timestamp lastModified(
    const std::string & path
) const;

list virtual

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

path virtual

std::string path() const;

isSubdirectoryOf protected

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

Returns true if and only if dir is a subdirectory of parent.

Securely control IoT edge devices from anywhere   Connect a Device