dir = app_registry.
Get(
"app",
"popup_tmp_dir");
67 if(mime_type ==
"application/pdf") {
69}
else if(mime_type ==
"text/comma-separated-values") {
71}
else if(mime_type ==
"text/plain") {
79 const intmax_tries = 100;
81 for(
i= 0;
i< max_tries;
i++) {
89 if(!
file.Exists()) {
93 if(
i== max_tries) {
117 if(idx != string::npos) {
118html.insert(idx,
string(
"<base href=\"") + url +
"\">\n");
static CNcbiApplication * Instance(void)
Singleton method.
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
static string GetTmpNameEx(const string &dir=kEmptyStr, const string &prefix=kEmptyStr, ETmpFileCreationMode mode=eTmpFileGetName)
Get temporary file name.
static void Add(const string &path)
Add the name of a dir entry; it will be deleted on (normal) exit.
static string GetTmpName(ETmpFileCreationMode mode=eTmpFileGetName)
Get temporary file name.
static void SendToBrowser(const string &html)
Send html to a web browser.
static void AddBaseTag(string &html, const string &url)
Add a <Base> tag to html (in place)
static bool PopupURL(const string &url)
launch an application to handle a URL
Uint4 TValue
Type of the generated integer value and/or the seed value.
virtual const string & Get(const string §ion, const string &name, TFlags flags=0) const
Get the parameter value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
static SIZE_TYPE FindNoCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
Find the pattern in the specified range of a string using a case insensitive search.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Process information in the NCBI Registry, including working with configuration files.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
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