[SESI logo]

Houdini Development Toolkit - Version 6.5

Side Effects Software Inc. 2004

File Access Classes

FS_Reader Methods

The FS_Reader class takes a file name in its constructor, and provides a C++ stream for reading the specified file. The difference between using FS_Reader and an ifstream directly is that FS_Reader supports an extensible architecture for reading files from sources other than on disk. For example, if the given file name begins with "http:", the FS_Reader will retrieve the file from a web server. If the file name begins with "opdef:" or "oplib:", and your code is running from within Houdini, the FS_Reader will access a file embbedded in the operator type library or operator definition speficied by the file name.

Most of the functions of this class are for internal use only. Only the functions listed below should be used in your code.

Controlling the Stream

  • FS_Reader(const char *filename)
    Use this constructor to create a new reader. The specified file is opened immediately.
  • istream *getStream() const
    This function retrieves the C++ stream object which you can interact with in the normal ways. If this function returns null, the file specified in the constructor could not be found.
  • close()
    Closes the stream. After calling this function, the getStream function will always return null.

  • Table of Contents
    Operators | Surface Operations | Particle Operations | Composite Operators | Channel Operators
    Material & Texture | Objects | Command and Expression | Render Output |
    Mantra Shaders | Utility Classes | Geometry Library | Image Library | Clip Library
    Customizing UI | Questions & Answers

    Copyright © 2004 Side Effects Software Inc.
    477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7