Home Redirector | |
---|---|
This example shows how to add a custom file handler to Houdini. There are three separate types of helpers that can be added. An FS_ReaderHelper is used for reading files; an FS_WriterHelper is used for writing files; and an FS_InfoHelper is used for getting file information and browsing directories. In this example, we implement a subclass of each of these classes to allow the user to specify a file name in the format "home:/foo/bar.hip". This file name will be reinterpreted by these derived classes as if the user had entered "$HOME/foo/bar.hip". This example does not implement any subclasses of the FS_ReaderStream or FS_WriterStream classes, but these classes can also be extended to provide extra functionality (such as buffering of read and write operations). | |
FS_HomeHelper.C FS_HomeHelper.h |
Source code for the FS_ReaderHelper, FS_WriterHelper, and FS_InfoHelper derived classes. |
The script will compile the sample source code. By default, everything is installed in your home directory.