cohtml.Net.UnityFileSystemReader
Allows Cohtml to interface with the local file system.It allows enumerating folders and opening streams to local resources.
Inherits from cohtml.Net.IFileSystemReader, cohtml.Net.IFileManipulator, SystemIDisposable
Inherited by cohtml.FileReader
Public Functions
| Name | |
|---|---|
| virtual override 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 UnitySyncStreamReader | OpenFile(string path) Opens the given file for reading. |
| UnityFileSystemReader() | |
| delegate bool | SwigDelegateUnityFileSystemReader_0(string path, global.System.IntPtr swigId) |
| delegate string | SwigDelegateUnityFileSystemReader_1(global.System.IntPtr swigId) |
| delegate global.System.IntPtr | SwigDelegateUnityFileSystemReader_2(string path, global.System.IntPtr swigId) |
Additional inherited members
Protected Attributes inherited from cohtml.Net.IFileManipulator
| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
function Dispose
virtual override void Dispose()
Reimplements: 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
Reimplements: cohtml.Net.IFileManipulator.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)
Reimplements: cohtml.Net.IFileManipulator.NextFile
function OpenFile
virtual UnitySyncStreamReader 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
Reimplements: cohtml.Net.IFileManipulator.OpenFile
Reimplemented by: cohtml.FileReader.OpenFile
function UnityFileSystemReader
UnityFileSystemReader()
function SwigDelegateUnityFileSystemReader_0
delegate bool SwigDelegateUnityFileSystemReader_0(
string path,
global.System.IntPtr swigId
)
function SwigDelegateUnityFileSystemReader_1
delegate string SwigDelegateUnityFileSystemReader_1(
global.System.IntPtr swigId
)
function SwigDelegateUnityFileSystemReader_2
delegate global.System.IntPtr SwigDelegateUnityFileSystemReader_2(
string path,
global.System.IntPtr swigId
)