\hypertarget{class_ogre_1_1_archive}{}\section{Ogre\+:\+:Archive Class Reference}
\label{class_ogre_1_1_archive}\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}}


Archive-\/handling class.  




{\ttfamily \#include $<$Ogre\+Archive.\+h$>$}



Inheritance diagram for Ogre\+:\+:Archive\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=163pt]{class_ogre_1_1_archive__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_archive_aa527675b915110919a754a226feebc4f}{Archive} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&name, const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&arch\+Type)
\begin{DoxyCompactList}\small\item\em Constructor -\/ don\textquotesingle{}t call direct, used by \hyperlink{class_ogre_1_1_archive_factory}{Archive\+Factory}. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_archive_a370fba29d752fa317e992aec6625d5ed}{$\sim$\+Archive} ()
\begin{DoxyCompactList}\small\item\em Default destructor. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} \hyperlink{class_ogre_1_1_archive_ac0ef7c79a59d89cdad41eaaba7b58cc5}{create} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename)
\begin{DoxyCompactList}\small\item\em Create a new file (or overwrite one already there). \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_archive_a2cf28a9b3219568373208962d94af401}{exists} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename) const =0
\begin{DoxyCompactList}\small\item\em Find out if the named file exists (note\+: fully qualified filename required) \end{DoxyCompactList}\item 
virtual \hyperlink{group___general_gae6b84ceebcdcc285f37bf9fba216697d}{String\+Vector\+Ptr} \hyperlink{class_ogre_1_1_archive_a2576b8e885e59bc7c885f10a429cbf98}{find} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&pattern, bool recursive=true, bool dirs=false) const =0
\begin{DoxyCompactList}\small\item\em Find all file or directory names matching a given pattern in this archive. \end{DoxyCompactList}\item 
virtual \hyperlink{group___resources_ga98a851530d714bac278ff907738ac643}{File\+Info\+List\+Ptr} \hyperlink{class_ogre_1_1_archive_a97f9929a9f3bafe00ede46256948ebad}{find\+File\+Info} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&pattern, bool recursive=true, bool dirs=false) const =0
\begin{DoxyCompactList}\small\item\em Find all files or directories matching a given pattern in this archive and get some detailed information about them. \end{DoxyCompactList}\item 
virtual time\+\_\+t \hyperlink{class_ogre_1_1_archive_a764ca3926e461dc2811883f1117d9af7}{get\+Modified\+Time} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename) const =0
\begin{DoxyCompactList}\small\item\em Retrieve the modification time of a given file. \end{DoxyCompactList}\item 
const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \& \hyperlink{class_ogre_1_1_archive_a65c4971ab0f1081f0976891c0ee3571b}{get\+Name} (void) const
\begin{DoxyCompactList}\small\item\em Get the name of this archive. \end{DoxyCompactList}\item 
const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \& \hyperlink{class_ogre_1_1_archive_a3d9b82e50ec15e683de00d9a6f649809}{get\+Type} (void) const
\begin{DoxyCompactList}\small\item\em Return the type code of this \hyperlink{class_ogre_1_1_archive}{Archive}. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_archive_a4169eee25281ebb54adeb9f06d9a7d80}{is\+Case\+Sensitive} (void) const =0
\begin{DoxyCompactList}\small\item\em Returns whether this archive is case sensitive in the way it matches files. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ogre_1_1_archive_a3229d2fd6c8d3236f68f7a3f1baedeec}{is\+Read\+Only} () const
\begin{DoxyCompactList}\small\item\em Reports whether this \hyperlink{class_ogre_1_1_archive}{Archive} is read-\/only, or whether the contents can be updated. \end{DoxyCompactList}\item 
virtual \hyperlink{group___general_gae6b84ceebcdcc285f37bf9fba216697d}{String\+Vector\+Ptr} \hyperlink{class_ogre_1_1_archive_a40a0c629ec78d3f7b8b4f0206d9daffe}{list} (bool recursive=true, bool dirs=false) const =0
\begin{DoxyCompactList}\small\item\em List all file names in the archive. \end{DoxyCompactList}\item 
virtual \hyperlink{group___resources_ga98a851530d714bac278ff907738ac643}{File\+Info\+List\+Ptr} \hyperlink{class_ogre_1_1_archive_a6f0364f262df461222f82f3baee71d70}{list\+File\+Info} (bool recursive=true, bool dirs=false) const =0
\begin{DoxyCompactList}\small\item\em List all files in the archive with accompanying information. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_archive_a6a073d74d1fab7d5499a35fab466c1b3}{load} ()=0
\begin{DoxyCompactList}\small\item\em Loads the archive. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} \hyperlink{class_ogre_1_1_archive_a919327fffdf74b7bc02bab6821732cd1}{open} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename, bool read\+Only=true) const =0
\begin{DoxyCompactList}\small\item\em Open a stream on a given file. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_archive_a7d03ab8a7ef32e314a5efbbf036f104e}{remove} (const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&filename)
\begin{DoxyCompactList}\small\item\em Delete a named file. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_archive_a5c2927f6a35441ea77262f95e4b0a6a0}{unload} ()=0
\begin{DoxyCompactList}\small\item\em Unloads the archive. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Archive-\/handling class. 

\begin{DoxyRemark}{Remarks}
An archive is a generic term for a container of files. This may be a filesystem folder, it may be a compressed archive, it may even be a remote location shared on the web. This class is designed to be subclassed to provide access to a range of file locations. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
Instances of this class are never constructed or even handled by end-\/user applications. They are constructed by custom \hyperlink{class_ogre_1_1_archive_factory}{Archive\+Factory} classes, which plugins can register new instances of using \hyperlink{class_ogre_1_1_archive_manager}{Archive\+Manager}. End-\/user applications will typically use \hyperlink{class_ogre_1_1_resource_manager}{Resource\+Manager} or \hyperlink{class_ogre_1_1_resource_group_manager}{Resource\+Group\+Manager} to manage resources at a higher level, rather than reading files directly through this class. Doing it this way allows you to benefit from O\+G\+RE\textquotesingle{}s automatic searching of multiple file locations for the resources you are looking for. 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_archive_aa527675b915110919a754a226feebc4f}\label{class_ogre_1_1_archive_aa527675b915110919a754a226feebc4f}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!Archive@{Archive}}
\index{Archive@{Archive}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{Archive()}{Archive()}}
{\footnotesize\ttfamily Ogre\+::\+Archive\+::\+Archive (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{name,  }\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{arch\+Type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Constructor -\/ don\textquotesingle{}t call direct, used by \hyperlink{class_ogre_1_1_archive_factory}{Archive\+Factory}. 

\mbox{\Hypertarget{class_ogre_1_1_archive_a370fba29d752fa317e992aec6625d5ed}\label{class_ogre_1_1_archive_a370fba29d752fa317e992aec6625d5ed}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!````~Archive@{$\sim$\+Archive}}
\index{````~Archive@{$\sim$\+Archive}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{$\sim$\+Archive()}{~Archive()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Archive\+::$\sim$\+Archive (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Default destructor. 



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_archive_a65c4971ab0f1081f0976891c0ee3571b}\label{class_ogre_1_1_archive_a65c4971ab0f1081f0976891c0ee3571b}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!get\+Name@{get\+Name}}
\index{get\+Name@{get\+Name}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{get\+Name()}{getName()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}\& Ogre\+::\+Archive\+::get\+Name (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the name of this archive. 

\mbox{\Hypertarget{class_ogre_1_1_archive_a4169eee25281ebb54adeb9f06d9a7d80}\label{class_ogre_1_1_archive_a4169eee25281ebb54adeb9f06d9a7d80}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!is\+Case\+Sensitive@{is\+Case\+Sensitive}}
\index{is\+Case\+Sensitive@{is\+Case\+Sensitive}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{is\+Case\+Sensitive()}{isCaseSensitive()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Archive\+::is\+Case\+Sensitive (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Returns whether this archive is case sensitive in the way it matches files. 

\mbox{\Hypertarget{class_ogre_1_1_archive_a6a073d74d1fab7d5499a35fab466c1b3}\label{class_ogre_1_1_archive_a6a073d74d1fab7d5499a35fab466c1b3}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!load@{load}}
\index{load@{load}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{load()}{load()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Archive\+::load (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Loads the archive. 

\begin{DoxyRemark}{Remarks}
This initializes all the internal data of the class. 
\end{DoxyRemark}
\begin{DoxyWarning}{Warning}
Do not call this function directly, it is meant to be used only by the \hyperlink{class_ogre_1_1_archive_manager}{Archive\+Manager} class. 
\end{DoxyWarning}
\mbox{\Hypertarget{class_ogre_1_1_archive_a5c2927f6a35441ea77262f95e4b0a6a0}\label{class_ogre_1_1_archive_a5c2927f6a35441ea77262f95e4b0a6a0}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!unload@{unload}}
\index{unload@{unload}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{unload()}{unload()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Archive\+::unload (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



Unloads the archive. 

\begin{DoxyWarning}{Warning}
Do not call this function directly, it is meant to be used only by the \hyperlink{class_ogre_1_1_archive_manager}{Archive\+Manager} class. 
\end{DoxyWarning}
\mbox{\Hypertarget{class_ogre_1_1_archive_a3229d2fd6c8d3236f68f7a3f1baedeec}\label{class_ogre_1_1_archive_a3229d2fd6c8d3236f68f7a3f1baedeec}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!is\+Read\+Only@{is\+Read\+Only}}
\index{is\+Read\+Only@{is\+Read\+Only}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{is\+Read\+Only()}{isReadOnly()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Archive\+::is\+Read\+Only (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Reports whether this \hyperlink{class_ogre_1_1_archive}{Archive} is read-\/only, or whether the contents can be updated. 



References Ogre\+::\+File\+Info\+::filename.

\mbox{\Hypertarget{class_ogre_1_1_archive_a919327fffdf74b7bc02bab6821732cd1}\label{class_ogre_1_1_archive_a919327fffdf74b7bc02bab6821732cd1}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!open@{open}}
\index{open@{open}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{open()}{open()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} Ogre\+::\+Archive\+::open (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename,  }\item[{bool}]{read\+Only = {\ttfamily true} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Open a stream on a given file. 

\begin{DoxyNote}{Note}
There is no equivalent \textquotesingle{}close\textquotesingle{} method; the returned stream controls the lifecycle of this file operation. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em filename} & The fully qualified name of the file \\
\hline
{\em read\+Only} & Whether to open the file in read-\/only mode or not (note, if the archive is read-\/only then this cannot be set to false) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A shared pointer to a \hyperlink{class_ogre_1_1_data_stream}{Data\+Stream} which can be used to read / write the file. If the file is not present, returns a null shared pointer. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_ac0ef7c79a59d89cdad41eaaba7b58cc5}\label{class_ogre_1_1_archive_ac0ef7c79a59d89cdad41eaaba7b58cc5}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!create@{create}}
\index{create@{create}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{create()}{create()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_a8a2a961b4205aacff9c01e81e08d7781}{Data\+Stream\+Ptr} Ogre\+::\+Archive\+::create (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Create a new file (or overwrite one already there). 

\begin{DoxyNote}{Note}
If the archive is read-\/only then this method will fail. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em filename} & The fully qualified name of the file \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A shared pointer to a \hyperlink{class_ogre_1_1_data_stream}{Data\+Stream} which can be used to read / write the file. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_a7d03ab8a7ef32e314a5efbbf036f104e}\label{class_ogre_1_1_archive_a7d03ab8a7ef32e314a5efbbf036f104e}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!remove@{remove}}
\index{remove@{remove}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{remove()}{remove()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Archive\+::remove (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Delete a named file. 

\begin{DoxyRemark}{Remarks}
Not possible on read-\/only archives 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em filename} & The fully qualified name of the file \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_archive_a40a0c629ec78d3f7b8b4f0206d9daffe}\label{class_ogre_1_1_archive_a40a0c629ec78d3f7b8b4f0206d9daffe}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!list@{list}}
\index{list@{list}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{list()}{list()}}
{\footnotesize\ttfamily virtual \hyperlink{group___general_gae6b84ceebcdcc285f37bf9fba216697d}{String\+Vector\+Ptr} Ogre\+::\+Archive\+::list (\begin{DoxyParamCaption}\item[{bool}]{recursive = {\ttfamily true},  }\item[{bool}]{dirs = {\ttfamily false} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



List all file names in the archive. 

\begin{DoxyNote}{Note}
This method only returns filenames, you can also retrieve other information using list\+File\+Info. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em recursive} & Whether all paths of the archive are searched (if the archive has a concept of that) \\
\hline
{\em dirs} & Set to true if you want the directories to be listed instead of files \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list of filenames matching the criteria, all are fully qualified 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_a6f0364f262df461222f82f3baee71d70}\label{class_ogre_1_1_archive_a6f0364f262df461222f82f3baee71d70}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!list\+File\+Info@{list\+File\+Info}}
\index{list\+File\+Info@{list\+File\+Info}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{list\+File\+Info()}{listFileInfo()}}
{\footnotesize\ttfamily virtual \hyperlink{group___resources_ga98a851530d714bac278ff907738ac643}{File\+Info\+List\+Ptr} Ogre\+::\+Archive\+::list\+File\+Info (\begin{DoxyParamCaption}\item[{bool}]{recursive = {\ttfamily true},  }\item[{bool}]{dirs = {\ttfamily false} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



List all files in the archive with accompanying information. 


\begin{DoxyParams}{Parameters}
{\em recursive} & Whether all paths of the archive are searched (if the archive has a concept of that) \\
\hline
{\em dirs} & Set to true if you want the directories to be listed instead of files \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list of structures detailing quite a lot of information about all the files in the archive. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_a2576b8e885e59bc7c885f10a429cbf98}\label{class_ogre_1_1_archive_a2576b8e885e59bc7c885f10a429cbf98}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!find@{find}}
\index{find@{find}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{find()}{find()}}
{\footnotesize\ttfamily virtual \hyperlink{group___general_gae6b84ceebcdcc285f37bf9fba216697d}{String\+Vector\+Ptr} Ogre\+::\+Archive\+::find (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{pattern,  }\item[{bool}]{recursive = {\ttfamily true},  }\item[{bool}]{dirs = {\ttfamily false} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Find all file or directory names matching a given pattern in this archive. 

\begin{DoxyNote}{Note}
This method only returns filenames, you can also retrieve other information using find\+File\+Info. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em pattern} & The pattern to search for; wildcards ($\ast$) are allowed \\
\hline
{\em recursive} & Whether all paths of the archive are searched (if the archive has a concept of that) \\
\hline
{\em dirs} & Set to true if you want the directories to be listed instead of files \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list of filenames matching the criteria, all are fully qualified 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_a2cf28a9b3219568373208962d94af401}\label{class_ogre_1_1_archive_a2cf28a9b3219568373208962d94af401}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!exists@{exists}}
\index{exists@{exists}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{exists()}{exists()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Archive\+::exists (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Find out if the named file exists (note\+: fully qualified filename required) 

\mbox{\Hypertarget{class_ogre_1_1_archive_a764ca3926e461dc2811883f1117d9af7}\label{class_ogre_1_1_archive_a764ca3926e461dc2811883f1117d9af7}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!get\+Modified\+Time@{get\+Modified\+Time}}
\index{get\+Modified\+Time@{get\+Modified\+Time}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{get\+Modified\+Time()}{getModifiedTime()}}
{\footnotesize\ttfamily virtual time\+\_\+t Ogre\+::\+Archive\+::get\+Modified\+Time (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{filename }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Retrieve the modification time of a given file. 

\mbox{\Hypertarget{class_ogre_1_1_archive_a97f9929a9f3bafe00ede46256948ebad}\label{class_ogre_1_1_archive_a97f9929a9f3bafe00ede46256948ebad}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!find\+File\+Info@{find\+File\+Info}}
\index{find\+File\+Info@{find\+File\+Info}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{find\+File\+Info()}{findFileInfo()}}
{\footnotesize\ttfamily virtual \hyperlink{group___resources_ga98a851530d714bac278ff907738ac643}{File\+Info\+List\+Ptr} Ogre\+::\+Archive\+::find\+File\+Info (\begin{DoxyParamCaption}\item[{const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String} \&}]{pattern,  }\item[{bool}]{recursive = {\ttfamily true},  }\item[{bool}]{dirs = {\ttfamily false} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}



Find all files or directories matching a given pattern in this archive and get some detailed information about them. 


\begin{DoxyParams}{Parameters}
{\em pattern} & The pattern to search for; wildcards ($\ast$) are allowed \\
\hline
{\em recursive} & Whether all paths of the archive are searched (if the archive has a concept of that) \\
\hline
{\em dirs} & Set to true if you want the directories to be listed instead of files \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A list of file information structures for all files matching the criteria. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_archive_a3d9b82e50ec15e683de00d9a6f649809}\label{class_ogre_1_1_archive_a3d9b82e50ec15e683de00d9a6f649809}} 
\index{Ogre\+::\+Archive@{Ogre\+::\+Archive}!get\+Type@{get\+Type}}
\index{get\+Type@{get\+Type}!Ogre\+::\+Archive@{Ogre\+::\+Archive}}
\subsubsection{\texorpdfstring{get\+Type()}{getType()}}
{\footnotesize\ttfamily const \hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}\& Ogre\+::\+Archive\+::get\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Return the type code of this \hyperlink{class_ogre_1_1_archive}{Archive}. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_archive_8h}{Ogre\+Archive.\+h}\end{DoxyCompactItemize}
