driveworks compile
This commit is contained in:
@@ -143,8 +143,10 @@ public:
|
||||
mCalibrationCache.clear();
|
||||
std::ifstream input("table.calib", std::ios::binary);
|
||||
input >> std::noskipws;
|
||||
if (mReadCache && input.good())
|
||||
std::copy(std::istream_iterator<char>(input), std::istream_iterator<char>(), std::back_inserter(mCalibrationCache));
|
||||
|
||||
FatalError("rewrite different");
|
||||
//if (mReadCache && input.good())
|
||||
// std::copy(std::istream_iterator<char>(input), std::istream_iterator<char>(), std::back_inserter(mCalibrationCache));
|
||||
|
||||
length = mCalibrationCache.size();
|
||||
return length ? &mCalibrationCache[0] : nullptr;
|
||||
@@ -163,4 +165,4 @@ private:
|
||||
size_t mInputCount;
|
||||
void* mDeviceInput{ nullptr };
|
||||
std::vector<char> mCalibrationCache;
|
||||
};
|
||||
};
|
||||
|
||||
+3
-1
@@ -15,7 +15,9 @@ void printCenteredTitle(const char *title, char fill, int dim) {
|
||||
|
||||
bool fileExist(const char *fname) {
|
||||
std::ifstream dataFile (fname, std::ios::in | std::ios::binary);
|
||||
return (bool) dataFile;
|
||||
if(!dataFile)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user