NCBI C++ ToolKit
Classes | Functions
vdbalias.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistr.hpp>
#include <corelib/ncbifile.hpp>
#include <algorithm>
#include <sstream>
#include <algo/blast/vdb/vdb2blast_util.hpp>
#include <algo/blast/vdb/vdbalias.hpp>
#include <objtools/blast/seqdb_reader/seqdbcommon.hpp>
#include <objtools/blast/seqdb_reader/impl/seqdbfile.hpp>
+ Include dependency graph for vdbalias.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


class  CVDBAliasNode
 CVDBAliasNode class. More...


static void s_Tokenize (const string &dbnames, vector< string > &db_list)
static string s_Join (const vector< string > &list, unsigned int max_size)
static void s_SeqDB_ReadLine (const char *bp, const char *ep, string &name, string &value)
 Parse a name-value pair. More...

Function Documentation

◆ s_Join()

static string s_Join ( const vector< string > &  list,
unsigned int  max_size 

Definition at line 267 of file vdbalias.cpp.

References i, and kEmptyStr.

Referenced by CVDBAliasNode::CVDBAliasNode().

◆ s_SeqDB_ReadLine()

static void s_SeqDB_ReadLine ( const char *  bp,
const char *  ep,
string name,
string value 

Parse a name-value pair.

The specified section of memory, corresponding to a line from an alias file or group alias file, is read, and the name and value are returned in the provided strings, whose capacity is managed via the quick assignment function.

bpThe memory region starts here. [in]
epThe end of the memory region. [in]
nameThe field name is returned here. [out]
valueThe field value is returned here. [out]

Definition at line 454 of file vdbalias.cpp.

References i, s_SeqDB_QuickAssign(), and value.

Referenced by CVDBAliasNode::x_ReadLine().

◆ s_Tokenize()

static void s_Tokenize ( const string dbnames,
vector< string > &  db_list 

Definition at line 254 of file vdbalias.cpp.

References i, SeqDB_ConvertOSPath(), SeqDB_SplitQuoted(), t, and tmp.

Referenced by CVDBAliasNode::CVDBAliasNode().

Modified on Wed Feb 28 07:13:14 2024 by rev. 669887