Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

FileTemplate Class Reference

#include <directory.h>

Inheritance diagram for FileTemplate:

Inheritance graph
[legend]
List of all members.

Detailed Description

Data for a file in directory/package hierarchy A file template holds information about a file in the directory/package hierarchy, and is responsible for allocating File objects on request. Specific implementations for normal and package files can then allocate the spcific class for the type of the requested file. For example, a file in a compressed package will be allocated of type VirtualFile, while a file in the normal file system will be of the base File type. With this construct the directory/package class does not need to know about the which implementation of the file type that needs to be allocated on request.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

virtual FileAllocateFile (const std::string &rstrName, Directory *pkParent)


Member Function Documentation

virtual File* AllocateFile const std::string &  rstrName,
Directory pkParent
[virtual]
 

Allocate new file object from template

Parameters:
rstrName File name
pkParent Parent directory object
Returns:
New file object

Reimplemented in VirtualFileTemplate.


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:11 2004 for NeoEngine by doxygen 1.3.5