etk::ArchiveContent Class Reference

#include <Archive.hpp>

Public Member Functions

void increaseRef ()
 
void decreaseRef ()
 
int32_t getNumberOfRef () const
 
int32_t getTheoricSize () const
 
 ArchiveContent (int32_t _basicSize=0)
 
int32_t size () const
 
void * data () const
 
std::vector< char > & getDataVector ()
 

Detailed Description

Element of the archive (with associated data)

Constructor & Destructor Documentation

§ ArchiveContent()

etk::ArchiveContent::ArchiveContent ( int32_t  _basicSize = 0)
inline

Basic constructor of an element.

Parameters
[in]_basicSizeSize of the zip element

Member Function Documentation

§ data()

void* etk::ArchiveContent::data ( ) const
inline

Get the pointer on the data read from the zip file.

Returns
void pointer on the data.

§ decreaseRef()

void etk::ArchiveContent::decreaseRef ( )
inline

Release reference on this data.

§ getDataVector()

std::vector<char>& etk::ArchiveContent::getDataVector ( )
inline

Get the Data Vector on the file.

Returns
Vector on the data.

§ getNumberOfRef()

int32_t etk::ArchiveContent::getNumberOfRef ( ) const
inline

Get the number of user link with this reference.

Returns
Count of user connected

§ getTheoricSize()

int32_t etk::ArchiveContent::getTheoricSize ( ) const
inline

Get the size of the element (size set by Zip file (not read))

Returns
the size in Byte of the file

§ increaseRef()

void etk::ArchiveContent::increaseRef ( )
inline

Increment the number of user of this resource (permit to keep data alive)

§ size()

int32_t etk::ArchiveContent::size ( ) const
inline

Get the size of the Data loaded.

Returns
number of Byte loaded.

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