NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
CCdDbPriority Class Reference

Search Toolkit Book for CCdDbPriority

#include <algo/structure/cd_utils/cuDbPriority.hpp>

+ Collaboration diagram for CCdDbPriority:

Public Types

enum  {
  eTopTier = 0 , eTier1 = 1 , eTier2 = 2 , eTier3 = 3 ,
  eTier4 = 4 , eBottomTier
}
 
enum  EDbSource {
  eDPGi = 0 , eDPPdb = 1 , eDPSwissprot = 2 , eDPGenbank = 3 ,
  eDPEmbl = 4 , eDPDdbj = 5 , eDPPrf = 6 , eDPPir = 7 ,
  eDPGeneral = 8 , eDPRefSeqAny = 10 , eDPRefSeqCurated = 11 , eDPRefSeqNP = 12 ,
  eDPRefSeqAP = 13 , eDPRefSeqAutomated = 15 , eDPRefSeqXP = 16 , eDPRefSeqYP = 17 ,
  eDPRefSeqWP = 18 , eDPRefSeqZP = 19 , eDPLocal = 20 , eDPUnsupported = 99 ,
  eDPGibbsq = 100 , eDPGibbmt = 101 , eDPGiim = 102 , eDPPatent = 103 ,
  eDPTPGenbank = 104 , eDPTPEmbl = 105 , eDPTPDdbj = 106 , eDPGpipe = 107 ,
  eDPUnknown = 999
}
 
typedef unsigned int TDbPriority
 
typedef map< EDbSource, TDbPriorityTSourcePriorityMap
 
typedef TSourcePriorityMap::iterator TSourcePriorityIt
 
typedef TSourcePriorityMap::value_type TSourcePriorityVT
 
typedef multimap< EDbSource, stringTSourceNameMap
 
typedef TSourceNameMap::value_type TSourceNameVT
 
typedef map< string, EDbSourceTNameSourceMap
 

Public Member Functions

 CCdDbPriority ()
 
 ~CCdDbPriority ()
 

Static Public Member Functions

static int CompareSources (const string &source1, const string &source2)
 
static string GetSourceName (EDbSource priority)
 
static unsigned int GetSourceNames (EDbSource priority, vector< string > &names)
 
static bool IsKnownDbSource (string dbSource)
 
static TDbPriority GetPriority (string dbSource)
 
static bool IsSupported (string dbSource)
 
static string SeqIdTypeToSource (unsigned int seqIdType, string accession=kEmptyStr)
 
static TDbPriority SeqIdTypeToPriority (unsigned int seqIdType, string accession=kEmptyStr)
 

Static Private Member Functions

static void Initialize ()
 
static EDbSource GetSourceCode (string dbSource)
 
static EDbSource SeqIdTypeToSourceCode (unsigned int seqIdType, string accession=kEmptyStr)
 

Static Private Attributes

static TSourcePriorityMap m_sourcePriorityMap
 
static TSourceNameMap m_sourceNameMap
 
static TNameSourceMap m_nameSourceMap
 

Detailed Description

Definition at line 47 of file cuDbPriority.hpp.

Member Typedef Documentation

◆ TDbPriority

typedef unsigned int CCdDbPriority::TDbPriority

Definition at line 111 of file cuDbPriority.hpp.

◆ TNameSourceMap

Definition at line 120 of file cuDbPriority.hpp.

◆ TSourceNameMap

Definition at line 118 of file cuDbPriority.hpp.

◆ TSourceNameVT

Definition at line 119 of file cuDbPriority.hpp.

◆ TSourcePriorityIt

Definition at line 113 of file cuDbPriority.hpp.

◆ TSourcePriorityMap

Definition at line 112 of file cuDbPriority.hpp.

◆ TSourcePriorityVT

Definition at line 114 of file cuDbPriority.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
eTopTier 
eTier1 
eTier2 
eTier3 
eTier4 
eBottomTier 

Definition at line 53 of file cuDbPriority.hpp.

◆ EDbSource

Enumerator
eDPGi 
eDPPdb 
eDPSwissprot 
eDPGenbank 
eDPEmbl 
eDPDdbj 
eDPPrf 
eDPPir 
eDPGeneral 
eDPRefSeqAny 
eDPRefSeqCurated 
eDPRefSeqNP 
eDPRefSeqAP 
eDPRefSeqAutomated 
eDPRefSeqXP 
eDPRefSeqYP 
eDPRefSeqWP 
eDPRefSeqZP 
eDPLocal 
eDPUnsupported 
eDPGibbsq 
eDPGibbmt 
eDPGiim 
eDPPatent 
eDPTPGenbank 
eDPTPEmbl 
eDPTPDdbj 
eDPGpipe 
eDPUnknown 

Definition at line 69 of file cuDbPriority.hpp.

Constructor & Destructor Documentation

◆ CCdDbPriority()

CCdDbPriority::CCdDbPriority ( )
inline

Definition at line 122 of file cuDbPriority.hpp.

◆ ~CCdDbPriority()

CCdDbPriority::~CCdDbPriority ( )
inline

Definition at line 123 of file cuDbPriority.hpp.

Member Function Documentation

◆ CompareSources()

int CCdDbPriority::CompareSources ( const string source1,
const string source2 
)
static

Definition at line 323 of file cuDbPriority.cpp.

References GetPriority().

◆ GetPriority()

CCdDbPriority::TDbPriority CCdDbPriority::GetPriority ( string  dbSource)
static

◆ GetSourceCode()

CCdDbPriority::EDbSource CCdDbPriority::GetSourceCode ( string  dbSource)
staticprivate

◆ GetSourceName()

string CCdDbPriority::GetSourceName ( EDbSource  priority)
static

◆ GetSourceNames()

unsigned int CCdDbPriority::GetSourceNames ( EDbSource  priority,
vector< string > &  names 
)
static

◆ Initialize()

void CCdDbPriority::Initialize ( )
staticprivate

◆ IsKnownDbSource()

bool CCdDbPriority::IsKnownDbSource ( string  dbSource)
static

Definition at line 301 of file cuDbPriority.cpp.

References Initialize(), and m_nameSourceMap.

◆ IsSupported()

static bool CCdDbPriority::IsSupported ( string  dbSource)
inlinestatic

Definition at line 136 of file cuDbPriority.hpp.

◆ SeqIdTypeToPriority()

CCdDbPriority::TDbPriority CCdDbPriority::SeqIdTypeToPriority ( unsigned int  seqIdType,
string  accession = kEmptyStr 
)
static

◆ SeqIdTypeToSource()

string CCdDbPriority::SeqIdTypeToSource ( unsigned int  seqIdType,
string  accession = kEmptyStr 
)
static

Definition at line 257 of file cuDbPriority.cpp.

References GetSourceName(), and SeqIdTypeToSourceCode().

Referenced by GetAccessionAndDatabaseSource().

◆ SeqIdTypeToSourceCode()

CCdDbPriority::EDbSource CCdDbPriority::SeqIdTypeToSourceCode ( unsigned int  seqIdType,
string  accession = kEmptyStr 
)
staticprivate

Member Data Documentation

◆ m_nameSourceMap

CCdDbPriority::TNameSourceMap CCdDbPriority::m_nameSourceMap
staticprivate

Definition at line 152 of file cuDbPriority.hpp.

Referenced by GetSourceCode(), Initialize(), and IsKnownDbSource().

◆ m_sourceNameMap

CCdDbPriority::TSourceNameMap CCdDbPriority::m_sourceNameMap
staticprivate

Definition at line 151 of file cuDbPriority.hpp.

Referenced by GetSourceName(), GetSourceNames(), and Initialize().

◆ m_sourcePriorityMap

CCdDbPriority::TSourcePriorityMap CCdDbPriority::m_sourcePriorityMap
staticprivate

Definition at line 150 of file cuDbPriority.hpp.

Referenced by GetPriority(), Initialize(), and SeqIdTypeToPriority().


The documentation for this class was generated from the following files:
Modified on Sat May 25 14:19:06 2024 by modify_doxy.py rev. 669887