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/util__misc_8cpp.html below:

NCBI C++ ToolKit: src/util/util_misc.cpp File Reference

Go to the source code of this file.

Go to the SVN repository for this file.

string  g_GetPasswordFromConsole (const string &prompt)   Get a password without echoing the user input. More...
    NCBI_PARAM_DECL (string, NCBI, DataPath)     NCBI_PARAM_DEF_EX (string, NCBI, DataPath, "", 0, NCBI_DATA_PATH)   typedef  NCBI_PARAM_TYPE (NCBI, DataPath) TNCBIDataPath     NCBI_PARAM_DECL (string, NCBI, Data)     NCBI_PARAM_DEF (string, NCBI, Data, "")   typedef  NCBI_PARAM_TYPE (NCBI, Data) TNCBIDataDir   string  g_FindDataFile (const CTempString &name, CDirEntry::EType type)   Look for an NCBI application data file or directory of the given name and type; in general, searches directories listed in the registry entry [NCBI] DataPath (which the environment variable NCBI_DATA_PATH may override) followed by [NCBI] Data (or NCBI_DATA). More...
  void  g_IgnoreDataFile (const string &pattern, bool do_ignore)   Ignore (or stop ignoring, depending on do_ignore) NCBI application data files matching the given pattern to force the use of built-in fallbacks; mainly of interest to unit tests. More...
  bool  g_IsDataFileOld (const CTempString &path, const CTempString &id_line)   Check whether the given file (a full path, as returned by g_FindDataFile) is older than a built-in version containing the specified "$Id: ..." line. More...
  bool  g_IsDataFileOld (const CTempString &path, const CTime &builtin_timestamp)   Check whether the given file (a full path, as returned by g_FindDataFile) is older than a built-in version with the specified timestamp. More...
  ◆ TIgnoreDataFiles ◆ g_FindDataFile()

Look for an NCBI application data file or directory of the given name and type; in general, searches directories listed in the registry entry [NCBI] DataPath (which the environment variable NCBI_DATA_PATH may override) followed by [NCBI] Data (or NCBI_DATA).

(Passing an absolute path bypasses this step.) NCBI_DATA_PATH and [NCBI] DataPath may both list multiple directories, delimited as per PATH (by ';' on Windows, ':' on Unix).

Parameters
name The name of the file or directory to look for. type The type to look for (following links unless explicitly looking for one); CDirEntry::eUnknown matches anything.
Returns
A full path if found, the empty string otherwise.

Definition at line 139 of file util_misc.cpp.

References eFollowLinks, eIgnoreLinks, CDirEntry::eLink, CDirEntry::Exists(), NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CDirEntry::GetPath(), CDirEntry::GetType(), CDirEntry::IsAbsolutePath(), ITERATE, kEmptyStr, CDirEntry::MakePath(), CDirEntry::MatchesMask(), CDirEntry::Reset(), s_IgnoredDataFiles, and NStr::Split().

Referenced by BlastFindMatrixPath(), s_AddOneDataFile(), s_FindUnicodeToAscii(), s_InitializeECNumberMaps(), s_InitializeInstitutionCollectionCodeMaps(), s_InitializeOrgRefMap(), s_InitializeStructuredCommentRules(), SAccGuide::SAccGuide(), and CLatLonMap_Base::x_InitFromFile().

◆ g_GetPasswordFromConsole()

Get a password without echoing the user input.

Parameters
prompt Printed before the user input
Returns
The user input till the first carriage return
Warning
UNIX and Windows implementations differ at processing Ctrl+C:
Exceptions

Definition at line 62 of file util_misc.cpp.

References NCBI_THROW, readpassphrase, RPP_ECHO_OFF, RPP_REQUIRE_TTY, and string.

◆ g_IgnoreDataFile() ◆ g_IsDataFileOld() [1/2] ◆ g_IsDataFileOld() [2/2]

Check whether the given file (a full path, as returned by g_FindDataFile) is older than a built-in version with the specified timestamp.

Definition at line 221 of file util_misc.cpp.

References CDirEntry::GetTime().

◆ NCBI_PARAM_DECL() [1/2] ◆ NCBI_PARAM_DECL() [2/2] ◆ NCBI_PARAM_DEF() ◆ NCBI_PARAM_DEF_EX() NCBI_PARAM_DEF_EX ( string  , NCBI  , DataPath  , ""  , 0  , NCBI_DATA_PATH    ) ◆ NCBI_PARAM_TYPE() [1/2] typedef NCBI_PARAM_TYPE ( NCBI  , Data    ) ◆ NCBI_PARAM_TYPE() [2/2] typedef NCBI_PARAM_TYPE ( NCBI  , DataPath    ) ◆ s_IgnoredDataFiles

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