A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/nst__util_8cpp_source.html below:

NCBI C++ ToolKit: src/app/netstorage/nst_util.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

47

vector<string> & warnings)

58  if

(access(

file_name

.c_str(), F_OK) != 0) {

59

warnings.push_back(

"Error computing config file checksum, " 60  "the file does not exist: "

+

file_name

);

64  if

(access(

file_name

.c_str(), R_OK) != 0) {

65

warnings.push_back(

"Error computing config file checksum, " 66  "there are no read permissions: "

+

file_name

);

71  string

checksum_as_string;

76  return

checksum_as_string;

77

}

catch

(

const

exception & ex) {

78

warnings.push_back(

"Error computing config file checksum. "

+

82

warnings.push_back(

"Unknown error of computing config file checksum"

);

Checksum and hash calculation classes.

CChecksum – Checksum calculator.

void AddFile(const string &file_path)

Update checksum with the file data.

void GetMD5Digest(unsigned char digest[16]) const

Return calculated MD5 digest.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

string NST_GetConfigFileChecksum(const string &file_name, vector< string > &warnings)

static const string s_ErrorGettingChecksum


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4