NCBI C++ ToolKit
Classes | Static Public Member Functions | List of all members
CSeqMaskerOstatFactory Class Reference

Search Toolkit Book for CSeqMaskerOstatFactory

Factory of CSeqMaskerOstat objects. More...

#include <algo/winmask/seq_masker_ostat_factory.hpp>

Classes

class  CSeqMaskerOstatFactoryException
 Exceptions that CSeqMaskerOstatFactory might throw. More...
 

Static Public Member Functions

static CSeqMaskerOstatcreate (const string &ustat_type, const string &name, bool use_ba, string const &metadata="")
 Method used to create a CSeqMakserOstat object by format name. More...
 
static CSeqMaskerOstatcreate (const string &ustat_type, CNcbiOstream &os, bool use_ba, string const &metadata="")
 Method used to create a CSeqMakserOstat object by format name. More...
 

Detailed Description

Factory of CSeqMaskerOstat objects.

Definition at line 49 of file seq_masker_ostat_factory.hpp.

Member Function Documentation

◆ create() [1/2]

CSeqMaskerOstat * CSeqMaskerOstatFactory::create ( const string ustat_type,
CNcbiOstream os,
bool  use_ba,
string const metadata = "" 
)
static

Method used to create a CSeqMakserOstat object by format name.

The method instantiates the appropriate subclass of CSeqMaskerOstat corresponding to the name of the file format, or throws an exception if the format name is not recognized.

Parameters
ustat_typethe name of the unit counts file format
osthe output stream
use_bawhether to use bit array based optimizations
metadatametadata string
Returns
pointer to the newly created object

Definition at line 56 of file seq_masker_ostat_factory.cpp.

References NCBI_RETHROW, NCBI_THROW, ncbi::grid::netcache::search::fields::size, string, and CException::what().

◆ create() [2/2]

CSeqMaskerOstat * CSeqMaskerOstatFactory::create ( const string ustat_type,
const string name,
bool  use_ba,
string const metadata = "" 
)
static

Method used to create a CSeqMakserOstat object by format name.

The method instantiates the appropriate subclass of CSeqMaskerOstat corresponding to the name of the file format, or throws an exception if the format name is not recognized.

Parameters
ustat_typethe name of the unit counts file format
namethe name of the file to save unit counts data to
use_bawhether to use bit array based optimizations
metadatametadata string
Returns
pointer to the newly created object

Definition at line 94 of file seq_masker_ostat_factory.cpp.

References NCBI_RETHROW, NCBI_THROW, ncbi::grid::netcache::search::fields::size, string, and CException::what().

Referenced by CWinMaskCountsConverter::operator()().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:21 2024 by modify_doxy.py rev. 669887