Mercurial > hg > nsaunier > traffic-intelligence
comparison c/utils.cpp @ 70:a52653dca25d
got track features to compile, updated paths to headers and libraries for OpenCV 2
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sat, 13 Nov 2010 11:20:10 -0500 |
| parents | ef0d7caf8e91 |
| children | b32947b002da |
comparison
equal
deleted
inserted
replaced
| 69:cc192d0450b3 | 70:a52653dca25d |
|---|---|
| 10 out.setf(ios::scientific); | 10 out.setf(ios::scientific); |
| 11 } | 11 } |
| 12 | 12 |
| 13 void openWritePrecision(ofstream& out, const string& filename, const int& precision) { | 13 void openWritePrecision(ofstream& out, const string& filename, const int& precision) { |
| 14 out.open(filename.c_str(), ios::binary); | 14 out.open(filename.c_str(), ios::binary); |
| 15 ::checkFileOpening(out, filename, "openWritePrecision"); | 15 ::openCheck(out, filename, "openWritePrecision"); |
| 16 out.precision(precision); | 16 out.precision(precision); |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool openCheck(ifstream& f, const string& filename, const string& callingFunctionName) { | 19 bool openCheck(ifstream& f, const string& filename, const string& callingFunctionName) { |
| 20 if (!f.is_open()) { | 20 if (!f.is_open()) { |
