mirror of
https://github.com/azure-rtos/guix.git
synced 2025-02-04 07:13:17 +08:00
28 lines
594 B
C++
28 lines
594 B
C++
|
|
#ifndef _CSV_READ_WRITE_
|
|
#define _CSV_READ_WRITE_
|
|
|
|
class csv_read_write
|
|
{
|
|
public:
|
|
csv_read_write();
|
|
BOOL ExportLanguage(studiox_project *project);
|
|
BOOL ImportCsvFile(studiox_project *project, CString &pathname);
|
|
|
|
private:
|
|
void ReadFile(CString pathname);
|
|
BOOL ReadLine(CString &line);
|
|
int FindDelimiterIndex(CString line, int start_index);
|
|
void SplitCsvLine(CString &line, CStringArray &line_array);
|
|
CString MakeCsvFormatValue(CString string);
|
|
void WriteString(CStdioFile *file, CString string);
|
|
|
|
private:
|
|
char *mpLine;
|
|
char *mpBuffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif |