Go to the documentation of this file.
28 #ifndef __FileSystem_H__
29 #define __FileSystem_H__
101 bool dirs =
false)
const;
114 msIgnoreHidden = ignore;
120 return msIgnoreHidden;
149 #endif // __FileSystem_H__
time_t getModifiedTime(const String &filename)
Retrieve the modification time of a given file.
StringVectorPtr list(bool recursive=true, bool dirs=false)
List all file names in the archive.
Specialisation of ArchiveFactory for FileSystem files.
const String & getType(void) const
Returns the factory type.
vector< String >::type StringVector
FileInfoListPtr listFileInfo(bool recursive=true, bool dirs=false)
List all files in the archive with accompanying information.
void remove(const String &filename) const
Delete a named file.
StringVectorPtr find(const String &pattern, bool recursive=true, bool dirs=false)
Find all file or directory names matching a given pattern in this archive.
Abstract factory class, archive codec plugins can register concrete subclasses of this.
FileInfoListPtr findFileInfo(const String &pattern, bool recursive=true, bool dirs=false) const
Find all files or directories matching a given pattern in this archive and get some detailed informat...
Archive * createInstance(const String &name, bool readOnly)
Creates a new object.
void unload()
Unloads the archive.
static void setIgnoreHidden(bool ignore)
Set whether filesystem enumeration will include hidden files or not.
void findFiles(const String &pattern, bool recursive, bool dirs, StringVector *simpleList, FileInfoList *detailList) const
Utility method to retrieve all files in a directory matching pattern.
bool exists(const String &filename)
Find out if the named file exists (note: fully qualified filename required)
void destroyInstance(Archive *ptr)
Destroys an object which was created by this factory.
static bool getIgnoreHidden()
Get whether hidden files are ignored during filesystem enumeration.
Specialisation of the Archive class to allow reading of files from filesystem folders / directories.
vector< FileInfo >::type FileInfoList
void load()
Loads the archive.
static bool msIgnoreHidden
bool isCaseSensitive(void) const
Returns whether this archive is case sensitive in the way it matches files.
virtual ~FileSystemArchiveFactory()
DataStreamPtr open(const String &filename, bool readOnly=true) const
Open a stream on a given file.
DataStreamPtr create(const String &filename) const
Create a new file (or overwrite one already there).
FileSystemArchive(const String &name, const String &archType, bool readOnly)
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.