#ifndef TWISTER_UTILS_H #define TWISTER_UTILS_H #include "json_spirit.h" #include "libtorrent/entry.hpp" #include #include class twister_utils { public: twister_utils(); }; int load_file(std::string const& filename, std::vector& v, int limit = 8000000); int save_file(std::string const& filename, std::vector& v); json_spirit::Value entryToJson(const libtorrent::entry &e); libtorrent::entry jsonToEntry(const json_spirit::Value &v); #endif // TWISTER_UTILS_H