class: etk::Archive


Description:



Associated Namespace:

class:

Constructor and Destructor:

+                             Archive     (const std::string & _fileName);
+ virtual ~Archive (void );

Synopsis:

#         std::string         m_fileName;
+ const std::string & getFileName (void );
# etk::Hash<Content> m_content;
+ int32_t size (void ) const;
+ const std::string & getName (int32_t _id) const;
+ const Content & getContent (int32_t _id) const;
+ const Content & getContent (const std::string & _key) const;
+ bool exist (const std::string & _key) const;
+ void open (const std::string & _key);
+ void close (const std::string & _key);
+ void display (void );
# virtual void loadFile (int32_t _id);
+ Archive* load (const std::string & _fileName);

Object Hierarchy:

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

Detail:

Archive

+  Archive (const std::string & _fileName);



~Archive

+ virtual  ~Archive (void );



m_fileName

# std::string m_fileName;
File name when it came from an file


getFileName

+ const std::string & getFileName (void );
Get the current file name.


m_content

# etk::Hash<Content> m_content;



size

+ int32_t size (void ) const;
Get the number of elements


getName

+ const std::string & getName (int32_t _id) const;
Get the File name of the ID


getContent

+ const Content & getContent (int32_t _id) const;
Get the File name of the ID


getContent

+ const Content & getContent (const std::string & _key) const;
Get the File name of the ID


exist

+ bool exist (const std::string & _key) const;
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


loadFile

# virtual void loadFile (int32_t _id);
Request the load in memory of the concerned file.


load

+ Archive* load (const std::string & _fileName);
Load an Achive with a specific name.