NCBI C++ ToolKit
Functions
writedb_isam.cpp File Reference

Implementation for the CWriteDB_Isam and related classes. More...

#include <ncbi_pch.hpp>
#include <corelib/tempstr.hpp>
#include <objtools/blast/seqdb_writer/writedb_error.hpp>
#include <objtools/blast/seqdb_writer/writedb_isam.hpp>
#include <objtools/blast/seqdb_writer/writedb_convert.hpp>
#include <serial/objistr.hpp>
#include <serial/objostr.hpp>
#include <serial/serial.hpp>
#include <objects/seqloc/seqloc__.hpp>
#include <objects/general/general__.hpp>
#include <stdio.h>
#include <sstream>
+ Include dependency graph for writedb_isam.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (std)
 Import C++ std namespace. More...
 
static string s_IsamExtension (EWriteDBIsamType itype, bool protein, bool is_index)
 Compute the file extension for an ISAM file. More...
 
bool s_NoCaseEqual (CTempString &a, CTempString &b)
 Compare two strings, ignoring case. More...
 

Detailed Description

Implementation for the CWriteDB_Isam and related classes.

Definition in file writedb_isam.cpp.

Function Documentation

◆ s_IsamExtension()

static string s_IsamExtension ( EWriteDBIsamType  itype,
bool  protein,
bool  is_index 
)
static

Compute the file extension for an ISAM file.

Parameters
itypeThe type of ID data stored in the file.
proteinTrue if the database type is protein.
is_indexTrue for the index file (i.e. pni).
Returns
The three letter extension as a string.

Definition at line 57 of file writedb_isam.cpp.

References eAcc, eGi, eHash, ePig, eTrace, and NCBI_THROW.

◆ s_NoCaseEqual()

bool s_NoCaseEqual ( CTempString a,
CTempString b 
)

Compare two strings, ignoring case.

Parameters
aFirst string.
bSecond string.

Definition at line 675 of file writedb_isam.cpp.

References a, b, and NStr::strncasecmp().

Referenced by CWriteDB_IsamIndex::x_AddTextId().

◆ USING_SCOPE()

USING_SCOPE ( std  )

Import C++ std namespace.

Modified on Mon May 20 05:02:52 2024 by modify_doxy.py rev. 669887