Class: etk::Archive


Synopsis:

+                       Archive      (const std::string & _fileName);
+ ~Archive (void);
+ const std::string & getFileName (void);
+ int32_t size (void);
+ const std::string & getName (int32_t _id);
+ const Content & getContent (int32_t _id);
+ const Content & getContent (const std::string & _key);
+ bool exist (const std::string & _key);
+ void open (const std::string & _key);
+ void close (const std::string & _key);
+ void display (void);
+ static Archive * load (const std::string & _fileName);
# void loadFile (int32_t _id);

Object Hierarchy:

etk::Archive
    +--> etk::archive::Zip

Detail:

etk::Archive ()

Archive(const std::string & _fileName);



etk::~Archive ()

~Archive(void);



getFileName ()

const std::string & getFileName(void);

Get the current file name.


size ()

int32_t size(void);

Get the number of elements


getName ()

const std::string & getName(int32_t _id);

Get the File name of the ID


getContent ()

const Content & getContent(int32_t _id);

Get the File name of the ID


getContent ()

const Content & getContent(const std::string & _key);

Get the File name of the ID


exist ()

bool exist(const std::string & _key);

Check if a file exist


open ()

void open(const std::string & _key);

Load the specific file in the memory


close ()

void close(const std::string & _key);

Un-Load the specific file from the memory


display ()

void display(void);

Display all Element in the archive


etk::load ()

static Archive * load(const std::string & _fileName);

Load an Achive with a specific name.


loadFile ()

void loadFile(int32_t _id);

Request the load in memory of the concerned file.