Mercurial > hg > nsaunier > traffic-intelligence
comparison c/utils.cpp @ 399:c389fae9689a
Added a class to read list of image instead of video. This is controlled by the use of the database-filename and folder-data parameters in the config file.
| author | Jean-Philippe Jodoin <jpjodoin@gmail.com> |
|---|---|
| date | Mon, 29 Jul 2013 17:12:45 -0400 |
| parents | bc4ea09b1743 |
| children | bee0e7407af7 |
comparison
equal
deleted
inserted
replaced
| 398:3399bd48cb40 | 399:c389fae9689a |
|---|---|
| 39 getline(f, s); | 39 getline(f, s); |
| 40 while ((!f.eof()) && (s[0] == ::commentChar)) { | 40 while ((!f.eof()) && (s[0] == ::commentChar)) { |
| 41 getline(f, s); | 41 getline(f, s); |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (s[0] == ::commentChar) | 44 if (!s.empty() && s[0] == ::commentChar) |
| 45 s.clear(); | 45 s.clear(); |
| 46 return s; | 46 return s; |
| 47 } | 47 } |
| 48 | 48 |
| 49 void openWriteScientificPrecision(ofstream& out, const string& filename, const int& precision) { | 49 void openWriteScientificPrecision(ofstream& out, const string& filename, const int& precision) { |
