Archive.hpp
Go to the documentation of this file.
115 };
void increaseRef()
Increment the number of user of this resource (permit to keep data alive)
Definition: Archive.hpp:27
ArchiveContent(int32_t _basicSize=0)
Basic constructor of an element.
Definition: Archive.hpp:60
virtual void loadFile(const std::map< std::string, ArchiveContent >::iterator &_it)
Request the load in memory of the concerned file.
Definition: Archive.hpp:169
std::vector< char > & getDataVector()
Get the Data Vector on the file.
Definition: Archive.hpp:83
int32_t getTheoricSize() const
Get the size of the element (size set by Zip file (not read))
Definition: Archive.hpp:50
basic namespace of the etk library. (it might contain all the etk fuctions/class/structures without m...
Definition: Archive.hpp:16
Archive(const std::string &_fileName)
Contructor of the archive element.
Definition: Archive.hpp:98
std::map< std::string, ArchiveContent > m_content
list of element of the zip file
Definition: Archive.hpp:115
const std::string & getFileName()
Get the current file name.
Definition: Archive.hpp:113
void decreaseRef()
Release reference on this data.
Definition: Archive.hpp:33
int32_t size() const
Get the size of the Data loaded.
Definition: Archive.hpp:69
int32_t getNumberOfRef() const
Get the number of user link with this reference.
Definition: Archive.hpp:40
std::string m_fileName
File name when it came from an file.
Definition: Archive.hpp:107
void * data() const
Get the pointer on the data read from the zip file.
Definition: Archive.hpp:76