NCBI C++ ToolKit
|
Search Toolkit Book for CVDBMgr
#include <sra/readers/sra/vdbread.hpp>
Classes | |
class | CRequestContextUpdater |
Public Member Functions | |
CVDBMgr (void) | |
string | FindAccPath (const string &acc) const |
string | FindDereferencedAccPath (const string &acc_or_path) const |
void | Close (void) |
string | GetCacheRoot () const |
void | SetCacheRoot (const string &path) |
void | DeleteCacheOlderThan (Uint4 days) |
void | CommitConfig () const |
CTime | GetTimestamp (const string &path) const |
CTime | GetURLTimestamp (const string &url) const |
Public Member Functions inherited from CSraRef< const VDBManager > | |
CSraRef (void) | |
CSraRef (const TSelf &ref) | |
CSraRef (TSelf &&ref) | |
Copy constructor from an existing CRef object,. More... | |
TSelf & | operator= (const TSelf &ref) |
TSelf & | operator= (TSelf &&ref) |
~CSraRef (void) | |
void | Release (void) |
TObject * | GetPointer (void) const |
operator TObject * (void) const | |
TObject * | operator-> (void) const |
TObject & | operator* (void) const |
Protected Member Functions | |
void | x_Init (void) |
Protected Member Functions inherited from CSraRef< const VDBManager > | |
CSraRef (TPointer ptr) | |
TObject ** | x_InitPtr (void) |
Private Attributes | |
CVResolver | m_Resolver |
Additional Inherited Members | |
Public Types inherited from CSraRef< const VDBManager > | |
typedef const VDBManager | TObject |
typedef TObject * | TPointer |
Protected Types inherited from CSraRef< const VDBManager > | |
typedef CSraRef< const VDBManager > | TSelf |
typedef CSraRefTraits< const VDBManager > | TTraits |
Static Protected Member Functions inherited from CSraRef< const VDBManager > | |
static TObject * | s_AddRef (const TSelf &ref) |
Definition at line 215 of file vdbread.hpp.
CVDBMgr::CVDBMgr | ( | void | ) |
Definition at line 511 of file vdbread.cpp.
References x_Init().
|
inline |
Definition at line 226 of file vdbread.hpp.
References CSraRef< const VDBManager >::Release().
Referenced by CWGSResolver_VDB::x_Close().
void CVDBMgr::CommitConfig | ( | ) | const |
Definition at line 1055 of file vdbread.cpp.
References CKConfig::Commit().
void CVDBMgr::DeleteCacheOlderThan | ( | Uint4 | days | ) |
Definition at line 1046 of file vdbread.cpp.
References NCBI_THROW2.
Definition at line 518 of file vdbread.cpp.
References m_Resolver, and CVResolver::Resolve().
Referenced by FindDereferencedAccPath().
Definition at line 527 of file vdbread.cpp.
References CDirEntry::DereferencePath(), CDirEntry::Exists(), FindAccPath(), CDirEntry::GetPath(), CVPath::IsPlainAccession(), LOG_POST_X, and s_GetDebugLevel().
Referenced by CVDBCacheWithExpiration::CExpirationInfo::DereferncePath(), CWGSResolver_VDB::SImpl::SImpl(), and CWGSResolver_VDB::x_Update().
string CVDBMgr::GetCacheRoot | ( | ) | const |
Definition at line 1021 of file vdbread.cpp.
References CVPath::eSys, kEmptyStr, NCBI_THROW2, and CVPath::ToString().
Definition at line 557 of file vdbread.cpp.
References _ASSERT, GetURLTimestamp(), CTime::IsEmpty(), CTime::IsUniversalTime(), LOG_POST_X, NCBI_THROW_FMT, s_GetDebugLevel(), NStr::StartsWith(), and CTime::ToUniversalTime().
Referenced by CVDBCacheWithExpiration::CExpirationInfo::GetTimestamp(), CWGSResolver_VDB::SImpl::SImpl(), and CWGSResolver_VDB::x_Update().
Definition at line 632 of file vdbread.cpp.
References buffer, CHECK_VDB_TIMEOUT, CClientHttpResult::eHead, NCBI_THROW2, result, ncbi::grid::netcache::search::fields::size, and str().
Referenced by GetTimestamp().
Definition at line 1036 of file vdbread.cpp.
References CVPath::eSys, and NCBI_THROW2.
|
protected |
Definition at line 1004 of file vdbread.cpp.
References Get(), NCBI_PARAM_TYPE, NCBI_THROW2, s_InitLocalKNS(), s_VDBInit(), and CSraRef< const VDBManager >::x_InitPtr().
Referenced by CVDBMgr().
|
mutableprivate |
Definition at line 261 of file vdbread.hpp.
Referenced by FindAccPath().