#include <Utils.h>
|
| static std::string | get_temp_dir_path () |
| |
| static void | write_index_descriptor (const std::string &index_path, const std::string &descriptor_path, const std::string &tmp_conf_files_path) |
| |
| static std::string | decompress_gzip (const std::string &gz_file, const std::string &tmp_dir) |
| |
|
static std::string | gettpfnvHash (uima::CAS &tcas) |
| |
|
static std::wstring | getFulltext (uima::CAS &tcas) |
| |
Project: libtpc File name: Utils.h
- Author
- valerio
- Version
- 1.0 7/26/17.
| string Utils::decompress_gzip |
( |
const std::string & |
gz_file, |
|
|
const std::string & |
tmp_dir |
|
) |
| |
|
static |
decompress file to a new file and return file path of the latter
- Parameters
-
| gz_file | the gx file to decompress |
- Returns
- the file path of the decompressed file
| string Utils::get_temp_dir_path |
( |
| ) |
|
|
static |
generate a random path name for a tmp directory
| void Utils::write_index_descriptor |
( |
const std::string & |
index_path, |
|
|
const std::string & |
descriptor_path, |
|
|
const std::string & |
tmp_conf_files_path |
|
) |
| |
|
static |
write a uima descriptor for an index to file
- Parameters
-
| index_path | the path of the index |
| descriptor_path | the path of the descriptor to be created |
| tmp_conf_files_path | the path of the directory containing the temp files for the index |
The documentation for this class was generated from the following files: