Jouni's Incremental BWT integrated into TextCollection
[SXSI/TextCollection.git] / incbwt / misc / utils.h
diff --git a/incbwt/misc/utils.h b/incbwt/misc/utils.h
new file mode 100644 (file)
index 0000000..48cd07f
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#include <fstream>
+#include <list>
+
+#include "definitions.h"
+
+
+namespace CSA
+{
+
+
+std::streamoff fileSize(std::ifstream& file);
+std::streamoff fileSize(std::ofstream& file);
+
+
+std::ostream& operator<<(std::ostream& stream, pair_type data);
+
+
+void readRows(std::ifstream& file, std::list<std::string>& rows, bool skipEmptyRows);
+
+
+} // namespace CSA
+
+
+#endif // UTILS_H