X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=incbwt%2Fmisc%2Futils.h;fp=incbwt%2Fmisc%2Futils.h;h=48cd07fbd0317e08e202e4213297b259ee5bc643;hb=40ddf9aca842bdc081b6350a4ebfe36b066c94c9;hp=0000000000000000000000000000000000000000;hpb=af8938dbee21244687184dd0502a84ce1af70c50;p=SXSI%2FTextCollection.git diff --git a/incbwt/misc/utils.h b/incbwt/misc/utils.h new file mode 100644 index 0000000..48cd07f --- /dev/null +++ b/incbwt/misc/utils.h @@ -0,0 +1,27 @@ +#ifndef UTILS_H +#define UTILS_H + +#include +#include + +#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& rows, bool skipEmptyRows); + + +} // namespace CSA + + +#endif // UTILS_H