cohtml.Net.IFileManipulator
Object capable of enumerating directories and opening files.
Inherits from SystemIDisposable
Inherited by cohtml.Net.IFileSystemReader
Public Functions
Name | |
---|---|
virtual void | Dispose() |
virtual bool | EnumerateFolder(string path) Prepares the given folder for enumeration. |
virtual string | NextFile() Returns the name of the i-th file in the current folder. |
virtual IStreamReader | OpenFile(string path) Opens the given file for reading. |
Protected Attributes
Name | |
---|---|
bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual void Dispose()
Reimplemented by: cohtml.Net.UnityFileSystemReader.Dispose, cohtml.Net.IFileSystemReader.Dispose
function EnumerateFolder
virtual bool EnumerateFolder(
string path
)
Prepares the given folder for enumeration.
Parameters:
- path the path to the folder
Return: whether the folder is ready for enumeration
Reimplemented by: cohtml.Net.UnityFileSystemReader.EnumerateFolder
function NextFile
virtual string NextFile()
Returns the name of the i-th file in the current folder.
Return: the name of the file (only the name, not its path)
Reimplemented by: cohtml.Net.UnityFileSystemReader.NextFile
function OpenFile
virtual IStreamReader OpenFile(
string path
)
Opens the given file for reading.
Parameters:
- path path to the file
Return: a stream reader for the given file or nullptr if the path does not exist
Reimplemented by: cohtml.FileReader.OpenFile, cohtml.Net.UnityFileSystemReader.OpenFile
Protected Attributes Documentation
variable swigCMemOwn
bool swigCMemOwn;