45 int GetIds(vector<CSeqDBGiList::SSiOid> & idlist);
75 char file_create_date_length =
x_GetChar();
79 char file_db_create_date_length =
x_GetChar();
89 const unsigned char byte_max = 0xFF;
94 unsigned char id_len = (
unsigned char)
x_GetChar();
95 if(id_len == byte_max) {
128 return static_cast<int>(list_info.
num_ids);
136 os <<
"Num of Ids: " << list_info.
num_ids <<
"\n";
137 os <<
"Title: " << list_info.
title <<
"\n";
138 os <<
"Create Date: " << list_info.
create_date <<
"\n";
141 os <<
"\t" <<
"Total Vol Length: " << list_info.
db_vol_length <<
"\n";
142 os <<
"\t" <<
"DB Create Date: " << list_info.
db_create_date <<
"\n";
143 os <<
"\t" <<
"DB Vols: ";
146 for(
unsigned int i=0;
i < vols.size();
i ++ ) {
147 os <<
"\n\t\t" << vols[
i];
152 os <<
"Seqidlist file is not in blast db version 5 format";
static void PrintSeqidlistInfo(const string &filename, CNcbiOstream &os)
static int GetSeqidlist(CMemoryFile &file, vector< CSeqDBGiList::SSiOid > &idlist, SBlastSeqIdListInfo &list_info)
Get seqidlist from dbv5 seqidlist file.
static int GetSeqidlistInfo(const string &filename, SBlastSeqIdListInfo &list_info)
Get seqidlist info only from dbv5 seqidlist file.
SBlastSeqIdListInfo m_info
void GetListInfo(SBlastSeqIdListInfo &info)
void x_GetString(string &rv, Uint4 len)
CSeqidlistRead(CMemoryFile &file)
int GetIds(vector< CSeqDBGiList::SSiOid > &idlist)
static const char si[8][64]
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
std::istream & in(std::istream &in_, double &x_)
string SeqDB_ResolveDbPath(const string &filename)
Resolve a file path using SeqDB's path algorithms.
Blast DB v5 seqid list info.