This class is a helper class used to export data to files.
More...
|
void | Start () |
| Initialize persistentDataPath More...
|
|
IEnumerator | ExportFiles () |
| This function exports signal data and left/right heel strike time stamps. More...
|
|
async void | ExportGenericFiles (string name, TextMeshPro label, List< float > valList) |
| Export the data currently being used in the walking trials.
More...
|
|
async Task | WriteToFile (string path, float line) |
| Asynchronously write and append line by line to a file. The using statement before the StreamWrite also closes the StreamReader. So, no need to close it. More...
|
|
void | CheckFileExists (string path, TextMeshPro label) |
| Check the file exists and set the name of last file generated by the user. More...
|
|
This class is a helper class used to export data to files.
Definition at line 13 of file DataExporter.cs.
◆ CheckFileExists()
void DataExporter.CheckFileExists |
( |
string |
path, |
|
|
TextMeshPro |
label |
|
) |
| |
|
inlineprivate |
Check the file exists and set the name of last file generated by the user.
Definition at line 153 of file DataExporter.cs.
◆ ExportDataFiles()
void DataExporter.ExportDataFiles |
( |
| ) |
|
|
inline |
This function start a Coroutine to export data Mapped to export data button.
Definition at line 44 of file DataExporter.cs.
◆ ExportFiles()
IEnumerator DataExporter.ExportFiles |
( |
| ) |
|
|
inlineprivate |
This function exports signal data and left/right heel strike time stamps.
Definition at line 59 of file DataExporter.cs.
◆ ExportGenericFiles()
async void DataExporter.ExportGenericFiles |
( |
string |
name, |
|
|
TextMeshPro |
label, |
|
|
List< float > |
valList |
|
) |
| |
|
inlineprivate |
Export the data currently being used in the walking trials.
Definition at line 83 of file DataExporter.cs.
◆ Start()
void DataExporter.Start |
( |
| ) |
|
|
inlineprivate |
◆ WriteToFile()
async Task DataExporter.WriteToFile |
( |
string |
path, |
|
|
float |
line |
|
) |
| |
|
inlineprivate |
Asynchronously write and append line by line to a file. The using statement before the StreamWrite also closes the StreamReader. So, no need to close it.
- Returns
Definition at line 135 of file DataExporter.cs.
◆ m_AnimLenLabel
TextMeshPro DataExporter.m_AnimLenLabel |
|
private |
◆ m_AvatarAnimationState
Need this to access heel strike time stamps.
Definition at line 22 of file DataExporter.cs.
◆ m_CoroutineIsRunning
bool DataExporter.m_CoroutineIsRunning = false |
|
private |
Check Coroutine is running or not. This is to prevent calling for multiple coroutines.
Definition at line 26 of file DataExporter.cs.
◆ m_DirectoryLocation
string DataExporter.m_DirectoryLocation = null |
|
private |
Directory location where files stored. C:\Users\yourname\AppData\LocalLow\DefaultCompany_BarMetronome.
Definition at line 30 of file DataExporter.cs.
◆ m_LastFileLabel
TextMeshPro DataExporter.m_LastFileLabel |
|
private |
◆ m_SignalFileLabel
TextMeshPro DataExporter.m_SignalFileLabel |
|
private |
The documentation for this class was generated from the following file: