libtpc  0.1
Textpressocentral core library
Utils.h
1 
9 #ifndef LIBTPC_UTILS_H
10 #define LIBTPC_UTILS_H
11 
12 #include <string>
13 #include <uima/api.hpp>
14 
15 class Utils {
16 public:
20  static std::string get_temp_dir_path();
21 
28  static void write_index_descriptor(const std::string& index_path, const std::string& descriptor_path,
29  const std::string& tmp_conf_files_path);
30 
36  static std::string decompress_gzip(const std::string & gz_file, const std::string& tmp_dir);
37 
38  static std::string gettpfnvHash(uima::CAS& tcas);
39 
40  static std::wstring getFulltext(uima::CAS& tcas);
41 };
42 
43 
44 #endif //LIBTPC_UTILS_H
static std::string get_temp_dir_path()
Definition: Utils.cpp:22
static void write_index_descriptor(const std::string &index_path, const std::string &descriptor_path, const std::string &tmp_conf_files_path)
Definition: Utils.cpp:79
static std::string decompress_gzip(const std::string &gz_file, const std::string &tmp_dir)
Definition: Utils.cpp:37
Definition: Utils.h:15