|
Agrarsense
|
#include <CSVFile.h>


Public Member Functions | |
| void | WriteRow (const TArray< FString > &Cells) |
| void | Close () |
| void | Destroy () |
Static Public Member Functions | |
| static UCSVFile * | CreateCSVFile (const FString &FileNameWithoutExtension, const FCSVFileSettings &Settings) |
Private Member Functions | |
| void | Create (const FString &FileNameWithoutExtension, const FCSVFileSettings &Settings) |
| void | OpenStream () |
| void | WriteRaw (const FString &Line) |
Private Attributes | |
| TArray< FString > | PendingRows |
| FString | FilePath |
| FCSVFileSettings | CurrentSettings |
| std::ofstream | CSVStream |
CSV file writer utility Usage example:
FCSVFileSettings Settings; UCSVFile* CSV = UCSVFile::CreateCSVFile("MyCoolCSVFile", Settings); CSV->WriteRow({ TEXT("Time"), TEXT("X"), TEXT("Y"), TEXT("Z") }); CSV->WriteRow({ TEXT("12.3"), TEXT("100"), TEXT("200"), TEXT("300") }); CSV->Destroy();
| void UCSVFile::Close | ( | ) |
Definition at line 116 of file CSVFile.cpp.
References CSVStream, CurrentSettings, FCSVFileSettings::FileWriteOption, PendingRows, Queue, and WriteRaw().
Referenced by Destroy(), and ATagger::ExportObjectLocationsToCSV().
|
private |
Definition at line 26 of file CSVFile.cpp.
References FCSVFileSettings::CreateUnique, CurrentSettings, FCSVFileSettings::CustomPath, FilePath, FCSVFileSettings::FileWriteOption, UAgrarsensePaths::GetDataFolder(), OpenStream(), PendingRows, Queue, and FCSVFileSettings::QueueSize.
Referenced by CreateCSVFile().
|
static |
Definition at line 15 of file CSVFile.cpp.
References Create().
Referenced by ATagger::CreateCSVFile(), and AInstancedRendererManager::ExportTreesAsCSV().
| void UCSVFile::Destroy | ( | ) |
Definition at line 134 of file CSVFile.cpp.
References Close().
Referenced by AInstancedRendererManager::ExportTreesAsCSV().
|
private |
Definition at line 62 of file CSVFile.cpp.
References FCSVFileSettings::Append, CSVStream, CurrentSettings, and FilePath.
Referenced by Create(), WriteRaw(), and WriteRow().
|
private |
Definition at line 108 of file CSVFile.cpp.
References CSVStream, and OpenStream().
Referenced by Close(), and WriteRow().
| void UCSVFile::WriteRow | ( | const TArray< FString > & | Cells | ) |
Definition at line 78 of file CSVFile.cpp.
References CSVStream, CurrentSettings, FCSVFileSettings::Delimiter, FCSVFileSettings::FileWriteOption, Immediate, OpenStream(), PendingRows, Queue, Semicolon, Tab, and WriteRaw().
Referenced by ATagger::CreateCSVFile(), AInstancedRendererManager::ExportTreesAsCSV(), and ATagger::WriteComponentToCSV().
|
private |
Definition at line 92 of file CSVFile.h.
Referenced by Close(), OpenStream(), WriteRaw(), and WriteRow().
|
private |
Definition at line 90 of file CSVFile.h.
Referenced by Close(), Create(), OpenStream(), and WriteRow().
|
private |
Definition at line 88 of file CSVFile.h.
Referenced by Create(), and OpenStream().
|
private |
Definition at line 86 of file CSVFile.h.
Referenced by Close(), Create(), and WriteRow().