C4 Engine Terathon Software C4 Engine API Documentation

• File Manager

API Links
Developer Links

class FileReference

Defined in:  C4Files.h
The FileReference class is used to represent one item in a list of files returned by the FileMgr::BuildFileList function.
Definition

class FileReference : public ListElement<FileReference>

Member Functions
FileReference::GetName Returns the name stored in a FileReference object.
FileReference::GetFlags Returns the flags associated with a FileReference object.
Constructor

FileReference(const char *name, unsigned long flags = 0);

Parameters
name A pointer to the name of the file. If a path name is specified, it is interpreted relative to the application. Directory names preceding a file name or another directory name should be followed by a single forward slash character (/).
flags The flags associated with the file.
Description
The FileReference class stores the name of a single file. If the name parameter points to a string longer than kMaxFileNameLength, then it is truncated to this length. Applications typically do not need to construct FileReference objects since they are returned in the list built by the FileMgr::BuildFileList function.

The flags parameter can be a combination (through logical OR) of the following bit values.
kFileDirectory The file reference represents a directory.
kFileInvisible The file is invisible.
Base Classes
ListElement<FileReference> FileReference objects are stored in a list by the FileMgr::BuildFileList function.
See Also

File

FileMgr