48cd07fbd0317e08e202e4213297b259ee5bc643
[SXSI/TextCollection.git] / incbwt / misc / utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
3
4 #include <fstream>
5 #include <list>
6
7 #include "definitions.h"
8
9
10 namespace CSA
11 {
12
13
14 std::streamoff fileSize(std::ifstream& file);
15 std::streamoff fileSize(std::ofstream& file);
16
17
18 std::ostream& operator<<(std::ostream& stream, pair_type data);
19
20
21 void readRows(std::ifstream& file, std::list<std::string>& rows, bool skipEmptyRows);
22
23
24 } // namespace CSA
25
26
27 #endif // UTILS_H