class: etk::Archive


Description:



Associated Namespace:

class:

Constructor and Destructor:

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

Synopsis:

#         std::string                   m_fileName;
+ const std::string & getFileName ();
# std::map<std::string,Content> m_content;
+ int32_t size () const;
+ const std::string & getName (size_t _id) const;
+ const Content & getContent (size_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 ();
# virtual void loadFile (const std::map ,
Content>::iterator & it);
+ Archive* load (const std::string & _fileName);

Object Hierarchy:

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

Detail:

Archive

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



~Archive

+ virtual  ~Archive ();



m_fileName

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


getFileName

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


m_content

# std::map<std::string,Content> m_content;



size

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


getName

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


getContent

+ const Content & getContent (size_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 ();
Display all Element in the archive


loadFile

# virtual void loadFile (const std::map ,
Content>::iterator & it);
Request the load in memory of the concerned file.


load

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