List of all members.
Public Member Functions
|void||ChangePathTo (string location)|
|void||ChangePathTo (string location, bool is_dir)|
|string||FindFirst (string wildcard, KindOfFile kind)|
|FSFile||OpenFile (string location)|
Static Public Member Functions
|static void||AddHandler (FileSystemHandler handler)|
|static void||CleanUpHandlers ()|
wxFileSystembut concentrates on the methods that are not already implemented in the .NET framework.
The wxWidgets file system uses instances created by the default constructor as handles for accessing files systems of various types through something like an URL. File system are implemented by a handler (refer to class FileSystemHandler). This wrapper to the .NET framework also allows file system handlers to be written in C# or another CRL language.
|static void wx.FileSys.FileSystem.AddHandler||(||FileSystemHandler||handler||)||
Adds the provided instance as a handler to the handler list. Refer for instance to
MemoryFSHandler for a wrapper to a standard wxWidgets resource handler. Note, that all inheritors of FileSystemHandler may be used here.
The native object wrapped by
handler will be owned by the singleton managing file system handlers. This will raise an exception, if te handler instance is already shared by another object.
Please refer also to CleanUpHandlers().
Sets the current location.
location parameter passed to OpenFile is relative to this path. Caution! Unless
is_dir is true the location parameter is not the directory name but the name of the file in this directory. All these commands change the path to "dir/subdir/":
FileSystem fs=new FileSystem(); fs.ChangePathTo("dir/subdir/xh.htm"); fs.ChangePathTo("dir/subdir", true); fs.ChangePathTo("dir/subdir/", true);
|location||the new location. Its meaning depends on the value of |
|static void wx.FileSys.FileSystem.CleanUpHandlers||(||)||
Clean up all installed file handlers. Calling this method is unfortunately necessary on shutting down applications installing some kinds of file system handlers by using AddHandler(). The reason is: wxWidgets will delete the C++ instances of installed file system handlers on shutting down. However, wxWidgets can of course not delete the corresponding .NET instances. These may also try to delete C++ instances on being disposed. So, we will likely to get access violations.
Returns name of the first filename (within filesystem's current path) that matches wildcard.
flags may be one of KindOfFile.wxFILE (only files), KindOfFile.wxDIR (only directories) or KindOfFile.Indifferent (both).
Returns filename or empty string if no more matching file exists.
Finds the next filename matching constraints of the previous FindFirst(). Returns filename or empty string if no more matching file exists.