56 const string& GetDbFile(
void)
const;
64 void SetDbFile(
const string& db_file);
68 void AddDataFile(
const string& data_file);
79 void AddDataDir(
const string& data_dir, EDirMode
mode = eDir_Recurse);
90 void AddDataUrl(
const string& url,
const string& handler_name);
148 bool x_IsGZipFile(
const SLDS2_File& file_info);
const string & GetDbFile(void) const
Get database file name.
Class for managing LDS2 database and related data files.
EErrorMode
Error handling while indexing files.
@ eError_Silent
Try to ignore errors, continue indexing.
@ eError_Report
Print error messages, but do not fail (default).
THandlersByUrl m_HandlersByUrl
EGBReleaseMode
Control indexing of GB releases (bioseq-sets).
@ eGB_Guess
Try to autodetect and split GB release bioseq-sets.
@ eGB_Ignore
Do not split bioseq-sets (default)
EDuplicateIdMode GetDuplicateIdMode(void) const
const string & GetDbFile(void) const
Get currently selected database name.
EGBReleaseMode m_GBReleaseMode
map< string, CRef< CLDS2_UrlHandler_Base > > THandlers
void SetErrorMode(EErrorMode mode)
void SetFastaFlags(CFastaReader::TFlags flags)
void SetSeqAlignGroupSize(int sz)
CLDS2_Database * GetDatabase(void)
Get the current database object.
EDirMode
Directory parsing mode while indexing files.
@ eDir_NoRecurse
Do not parse sub-dirs automatically.
EDuplicateIdMode m_DupIdMode
CFastaReader::TFlags GetFastaFlags(void) const
Fasta reader settings.
void SetGBReleaseMode(EGBReleaseMode mode)
CFastaReader::TFlags m_FastaFlags
EGBReleaseMode GetGBReleaseMode(void) const
CRef< CLDS2_Database > m_Db
void SetDuplicateIdMode(EDuplicateIdMode mode)
int GetSeqAlignGroupSize(void) const
Control grouping of standalone seq-aligns into bigger blobs.
EErrorMode GetErrorMode(void) const
EDuplicateIdMode
Control seq-id conflict resolving during file parsing.
@ eDuplicate_Skip
Ignore bioseqs with duplicate ids, store just the first one.
@ eDuplicate_Store
Store all bioseqs regardless of seq-id conflicts (defalut).
CLDS2_Database::TStringSet TFiles
map< string, string > THandlersByUrl
Base class for URL handler.
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
Operators to edit gaps in sequences.
long TFlags
binary OR of EFlags
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
BOOL UpdateData(HWND hDlg, CProjBulderApp *pApp, BOOL bGet)