MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / ReadDataFromFile

Function ReadDataFromFile

src/FileAccess.cpp:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27{
28
29 void ReadDataFromFile(const string Filename,
30 SensorDataSet& SensorData)
31 {
32 string Buffer;
33 std::ifstream File;
34
35 File.open(Filename);
36 std::getline(File, Buffer);
37
38 while(Buffer.length() > 0)
39 {
40 SensorData.addElement(Data(Buffer));
41 std::getline(File, Buffer);
42 }
43
44 File.close();
45 }
46
47 void WriteDataToFile(const string Filename,
48 const string DataName,

Callers 5

CreateGraphAndSolveFunction · 0.85
CreateGraphAndSolveFunction · 0.85
mainFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

DataClass · 0.85
addElementMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68