1 #ifndef OBJTOOLS__PUBSEQ_GATEWAY__IPG__FETCH_IPG_REPORT_HPP_
2 #define OBJTOOLS__PUBSEQ_GATEWAY__IPG__FETCH_IPG_REPORT_HPP_
54 m_ProteinAccession = accession;
60 m_NucAccession = accession;
77 m_ResolvedIpg =
value;
91 if (m_ProteinAccession) {
92 return m_ProteinAccession.value();
100 return m_NucAccession.value();
108 return m_ResolvedIpg.value();
116 return m_Ipg.value();
119 return m_ResolvedIpg.value();
126 return m_Ipg.has_value();
131 return m_ProteinAccession.has_value();
136 return m_NucAccession.has_value();
141 return m_ResolvedIpg.has_value();
146 return m_Ipg.has_value() || m_ResolvedIpg.has_value();
175 shared_ptr<CCassConnection> connection,
176 const string & keyspace,
190 void SetDataReadyCB(shared_ptr<CCassDataCallbackReceiver> callback);
219 void Wait1()
override;
231 CassConsistency
m_Consistency{CassConsistency::CASS_CONSISTENCY_LOCAL_QUORUM};
function< void(CRequestStatus::ECode status, int code, EDiagSev severity, const string &message)> TDataErrorCallback
static const unsigned int DEFAULT_PAGE_SIZE
bool HasResolvedIpg() const
optional< string > m_NucAccession
CPubseqGatewayFetchIpgReportRequest & SetNucleotide(string const &accession)
CPubseqGatewayFetchIpgReportRequest & operator=(CPubseqGatewayFetchIpgReportRequest const &)=default
optional< string > m_ProteinAccession
CPubseqGatewayFetchIpgReportRequest(CPubseqGatewayFetchIpgReportRequest &&)=default
CPubseqGatewayFetchIpgReportRequest & operator=(CPubseqGatewayFetchIpgReportRequest &&)=default
optional< TIpg > m_ResolvedIpg
CPubseqGatewayFetchIpgReportRequest()=default
CPubseqGatewayFetchIpgReportRequest(CPubseqGatewayFetchIpgReportRequest const &)=default
string GetProtein() const
TIpg GetResolvedIpg() const
CPubseqGatewayFetchIpgReportRequest & SetIpg(TIpg value)
CPubseqGatewayFetchIpgReportRequest & SetProtein(string const &accession)
string GetNucleotide() const
CPubseqGatewayFetchIpgReportRequest & SetResolvedIpg(TIpg value)
TIpg HasIpgToFetchData() const
TIpg GetIpgToFetchData() const
bool HasNucleotide() const
SIpgSubgroupsConfig m_Subgroups
@ eTaskFetchReportStarted
@ eTaskAccessionResolutionStarted
@ eTaskCheckHugeIpgStarted
CPubseqGatewayFetchIpgReportRequest GetRequest() const
void SetConsumeCallback(CPubseqGatewayIpgReportConsumeCallback callback)
CPubseqGatewayIpgReportConsumeCallback m_ConsumeCallback
void SetPageSize(unsigned int value)
CassConsistency m_Consistency
vector< CIpgStorageReportEntry > m_Container
static const size_t kReadBufferReserveDefault
virtual ~CPubseqGatewayFetchIpgReport()
CPubseqGatewayFetchIpgReport & operator=(CPubseqGatewayFetchIpgReport &&)=default
void SetSubgrupsStatusOverride(EIpgSubgroupsStatus value)
unsigned int GetPageSize() const
CPubseqGatewayFetchIpgReport & operator=(const CPubseqGatewayFetchIpgReport &)=delete
CPubseqGatewayFetchIpgReport(CPubseqGatewayFetchIpgReport &&)=default
string m_LastNucAccession
CPubseqGatewayFetchIpgReport(shared_ptr< CCassConnection > connection, const string &keyspace, CPubseqGatewayFetchIpgReportRequest const &request, CPubseqGatewayIpgReportConsumeCallback consume_callback, TDataErrorCallback data_error_cb, bool async=true)
CPubseqGatewayFetchIpgReportRequest m_Request
EIpgSubgroupsStatus m_SubgroupsStatusOverride
unsigned int m_RestartCounter
void SetDataReadyCB(shared_ptr< CCassDataCallbackReceiver > callback)
SIpgSubgroupsConfig::TCIterator m_SubgroupItr
CPubseqGatewayFetchIpgReport(const CPubseqGatewayFetchIpgReport &)=delete
void SetConsistency(CassConsistency value)
SIpgSubgroupsConfig GetSubgroupsConfig() const
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
function< bool(vector< CIpgStorageReportEntry > &&, bool is_last)> CPubseqGatewayIpgReportConsumeCallback
const GenericPointer< typename T::ValueType > T2 value
vector< int32_t >::const_iterator TCIterator