MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / LoadCsvFile

Function LoadCsvFile

src/External/CascLib/src/CascFiles.cpp:906–915  ·  view source on GitHub ↗

Loads a local CSV file

Source from the content-addressed store, hash-verified

904
905// Loads a local CSV file
906static DWORD LoadCsvFile(TCascStorage * hs, LPCTSTR szFileName, PARSE_CSV_FILE PfnParseProc, bool bHasHeader)
907{
908 CASC_CSV Csv(0x40, bHasHeader);
909 DWORD dwErrCode;
910
911 // Load the external file to memory
912 if((dwErrCode = Csv.Load(szFileName)) == ERROR_SUCCESS)
913 dwErrCode = PfnParseProc(hs, Csv);
914 return dwErrCode;
915}
916
917// Loading an online file (VERSIONS or CDNS)
918static DWORD LoadCsvFile(TCascStorage * hs, PARSE_REGION_LINE PfnParseRegionLine, LPCTSTR szFileName, LPCSTR szColumnName, bool bForceDownload)

Callers 2

LoadMainFileFunction · 0.85

Calls 9

CascStrCopyFunction · 0.85
InvokeProgressCallbackFunction · 0.85
RibbitDownloadFileFunction · 0.85
LoadFileToMemoryFunction · 0.85
SetPathRootMethod · 0.80
AppendStringMethod · 0.80
SetLocalCachingMethod · 0.80
GetLineCountMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected