libtpc  0.1
Textpressocentral core library
Static Public Member Functions | List of all members
Utils Class Reference

#include <Utils.h>

Static Public Member Functions

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)
 

Detailed Description

Project: libtpc File name: Utils.h

Author
valerio
Version
1.0 7/26/17.

Member Function Documentation

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_filethe 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_paththe path of the index
descriptor_paththe path of the descriptor to be created
tmp_conf_files_paththe path of the directory containing the temp files for the index

The documentation for this class was generated from the following files: