fw4spl
fwZip::ReadDirArchive Class Reference

This class defines functions to read a file in a file system archive. More...

#include <ReadDirArchive.hpp>

+ Inheritance diagram for fwZip::ReadDirArchive:
+ Collaboration diagram for fwZip::ReadDirArchive:

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWZIP_API ReadDirArchive (const ::boost::filesystem::path &archive)
 Constructors. Initializes archive path.
 
FWZIP_API ~ReadDirArchive ()
 Destructor. Close automatically last input file stream.
 
FWZIP_API std::shared_ptr< std::istream > getFile (const ::boost::filesystem::path &path) override
 Returns input stream for the file in current archive. More...
 
FWZIP_APIconst::boost::filesystem::path getArchivePath () const override
 Returns archive path.
 
IReadArchive::sptr clone () const override
 
- Public Member Functions inherited from fwZip::IReadArchive

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwZip::IReadArchive
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Protected Attributes

::boost::filesystem::path m_archive
 

Friends

template<class , class , class >
class ::fwTools::ClassFactory
 
class ::fwTools::Factory
 

Demangling methods

virtual const std::string & getLeafClassname () const override
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Detailed Description

This class defines functions to read a file in a file system archive.

Definition at line 25 of file ReadDirArchive.hpp.

Member Function Documentation

std::shared_ptr< std::istream > fwZip::ReadDirArchive::getFile ( const ::boost::filesystem::path &  path)
overridevirtual

Returns input stream for the file in current archive.

Parameters
pathfile in archive.
Returns
input stream from request file.
Exceptions
fwZip::exception::Readif file doesn't exist in archive.

Implements fwZip::IReadArchive.

Definition at line 34 of file ReadDirArchive.cpp.

References SPTR.


The documentation for this class was generated from the following files: