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

Search Toolkit Book for CAutoRegistrar

Auxiliary class to register the BLAST database data loader of choice (information provided in the constructor) and deactivate it on object destruction. More...

Public Member Functions

 CAutoRegistrar (const string &dbname, bool is_protein, bool use_fixed_slice_size, bool use_remote_blast_db_loader=false)
 
void RegisterGenbankDataLoader ()
 
 ~CAutoRegistrar ()
 
 CAutoRegistrar (const string &dbname, bool is_protein, bool use_fixed_slice_size, bool use_remote_blast_db_loader=false)
 
 ~CAutoRegistrar ()
 

Static Public Member Functions

static void RemoveAllDataLoaders ()
 

Private Attributes

string loader_name
 
string gbloader_name
 

Detailed Description

Auxiliary class to register the BLAST database data loader of choice (information provided in the constructor) and deactivate it on object destruction.

Auxiliary class to register the BLAST database data loader of choice (information provided in the constructor) and deactivate it on object destruction (shamelessly copied from bdbloader_unit_test.cpp)

See also
rmt_dataloader_test.cpp
bdbloader_unit_test.cpp

Definition at line 58 of file bdbloader_unit_test.cpp.

Constructor & Destructor Documentation

◆ CAutoRegistrar() [1/2]

CAutoRegistrar::CAutoRegistrar ( const string dbname,
bool  is_protein,
bool  use_fixed_slice_size,
bool  use_remote_blast_db_loader = false 
)
inline

◆ ~CAutoRegistrar() [1/2]

CAutoRegistrar::~CAutoRegistrar ( )
inline

Definition at line 92 of file bdbloader_unit_test.cpp.

References gbloader_name, CObjectManager::GetInstance(), loader_name, and om.

◆ CAutoRegistrar() [2/2]

CAutoRegistrar::CAutoRegistrar ( const string dbname,
bool  is_protein,
bool  use_fixed_slice_size,
bool  use_remote_blast_db_loader = false 
)
inline

◆ ~CAutoRegistrar() [2/2]

CAutoRegistrar::~CAutoRegistrar ( )
inline

Definition at line 122 of file rmt_dataloader_test.cpp.

References CObjectManager::GetInstance(), and om.

Member Function Documentation

◆ RegisterGenbankDataLoader()

void CAutoRegistrar::RegisterGenbankDataLoader ( )
inline

◆ RemoveAllDataLoaders()

static void CAutoRegistrar::RemoveAllDataLoaders ( )
inlinestatic

Member Data Documentation

◆ gbloader_name

string CAutoRegistrar::gbloader_name
private

Definition at line 102 of file bdbloader_unit_test.cpp.

Referenced by RegisterGenbankDataLoader(), and ~CAutoRegistrar().

◆ loader_name

string CAutoRegistrar::loader_name
private

Definition at line 101 of file bdbloader_unit_test.cpp.

Referenced by CAutoRegistrar(), and ~CAutoRegistrar().


The documentation for this class was generated from the following files:
Modified on Fri May 24 14:56:33 2024 by modify_doxy.py rev. 669887