SIS
Symmetric Index Structures
|
00001 #ifndef UTILITY_HPP 00002 #define UTILITY_HPP 00003 00004 #include <fstream> 00005 #include <string> 00006 #include <memory> 00007 namespace lmu { namespace cis { namespace sis { 00008 00009 // inline char* read_file_fast(std::string& doc) { 00010 // std::ifstream is(doc, std::ios::binary); 00011 // 00012 // is.seekg (0, std::ios::end); 00013 // UINT length = is.tellg(); 00014 // is.seekg (0, std::ios::beg); 00015 // 00016 // // allocate memory: 00017 // std::unique_ptr<char> buffer(new char[length]); 00018 // is.read(buffer.get(),length); 00019 // is.close(); 00020 // return std::move(buffer); 00021 // } 00022 }}} /* End of namespace lmu::cis::sis */ 00023 00024 #endif /* end of include guard: UTILITY_HPP */