NCBI C++ ToolKit
|
Search Toolkit Book for CPSG_Request_Resolve
Request to the PSG server (by bio-id, for a biodata specific info and data) More...
#include <objtools/pubseq_gateway/client/psg_client.hpp>
Public Types | |
enum | EIncludeInfo : unsigned { fCanonicalId = (1 << 1) , fName = (1 << 2) , fOtherIds = (1 << 3) , fMoleculeType = (1 << 4) , fLength = (1 << 5) , fChainState = (1 << 6) , fState = (1 << 7) , fBlobId = (1 << 8) , fTaxId = (1 << 9) , fHash = (1 << 10) , fDateChanged = (1 << 11) , fGi = (1 << 12) , fAllInfo = numeric_limits<unsigned>::max() } |
Specify which info and data is needed Some processors may provide more than the flags prescribe Always check if corresponding data is actually available using CPSG_BioseqInfo::IncludedInfo() More... | |
Public Types inherited from CPSG_Request | |
enum | EType { eBiodata , eResolve , eBlob , eNamedAnnotInfo , eChunk , eIpgResolve } |
enum | EFlags { fExcludeHUP = (0 << 0) , fIncludeHUP = (1 << 0) , eDefaultFlags = fExcludeHUP } |
using | TOptionalFlags = CNullable< TFlags > |
Public Member Functions | |
CPSG_Request_Resolve (CPSG_BioId bio_id, EPSG_BioIdResolution bio_id_resolution, shared_ptr< void > user_context={}, CRef< CRequestContext > request_context={}) | |
CPSG_Request_Resolve (CPSG_BioId bio_id, shared_ptr< void > user_context={}, CRef< CRequestContext > request_context={}) | |
const CPSG_BioId & | GetBioId () const |
EPSG_BioIdResolution | GetBioIdResolution () const |
DECLARE_SAFE_FLAGS_TYPE (EIncludeInfo, TIncludeInfo) | |
void | IncludeInfo (TIncludeInfo include) |
TIncludeInfo | GetIncludeInfo () const |
void | SetAccSubstitution (EPSG_AccSubstitution acc_substitution) |
Set substitution policy for version-less primary seq-ids. More... | |
Public Member Functions inherited from CPSG_Request | |
DECLARE_SAFE_FLAGS_TYPE (EFlags, TFlags) | |
template<typename TUserContext > | |
shared_ptr< TUserContext > | GetUserContext () const |
Get the user-provided context. More... | |
CRef< CRequestContext > | GetRequestContext () const |
Get request context. More... | |
void | SetRequestContext (CRef< CRequestContext > request_context) |
Set request context. More... | |
EType | GetType () const |
Get request type. More... | |
string | GetId () const |
void | SetFlags (TOptionalFlags flags) |
Set flags. More... | |
void | SetUserArgs (SPSG_UserArgs user_args) |
Set arbitrary URL arguments to add to this request. More... | |
Private Member Functions | |
EType | x_GetType () const override |
string | x_GetId () const override |
void | x_GetAbsPathRef (ostream &) const override |
Private Attributes | |
CPSG_BioId | m_BioId |
EPSG_BioIdResolution | m_BioIdResolution |
TIncludeInfo | m_IncludeInfo = TIncludeInfo(0) |
EPSG_AccSubstitution | m_AccSubstitution = EPSG_AccSubstitution::Default |
Additional Inherited Members | |
Protected Member Functions inherited from CPSG_Request | |
template<class T > | |
T | GetCtx (T c) |
CPSG_Request (shared_ptr< void > user_context={}, CRef< CRequestContext > request_context={}) | |
virtual | ~CPSG_Request ()=default |
Request to the PSG server (by bio-id, for a biodata specific info and data)
Definition at line 391 of file psg_client.hpp.
enum CPSG_Request_Resolve::EIncludeInfo : unsigned |
Specify which info and data is needed Some processors may provide more than the flags prescribe Always check if corresponding data is actually available using CPSG_BioseqInfo::IncludedInfo()
Enumerator | |
---|---|
fCanonicalId | |
fName | Requests name to use for canonical bio-id. |
fOtherIds | |
fMoleculeType | |
fLength | |
fChainState | |
fState | |
fBlobId | |
fTaxId | |
fHash | |
fDateChanged | |
fGi | |
fAllInfo |
Definition at line 420 of file psg_client.hpp.
|
inline |
bio_id | ID of the bioseq |
bio_id_resolution | Whether to try to resolve using provided ID (or use it as-is) |
Definition at line 398 of file psg_client.hpp.
|
inline |
Definition at line 407 of file psg_client.hpp.
CPSG_Request_Resolve::DECLARE_SAFE_FLAGS_TYPE | ( | EIncludeInfo | , |
TIncludeInfo | |||
) |
|
inline |
|
inline |
Definition at line 414 of file psg_client.hpp.
References m_BioIdResolution.
|
inline |
Definition at line 439 of file psg_client.hpp.
References m_IncludeInfo.
|
inline |
Definition at line 437 of file psg_client.hpp.
References m_IncludeInfo.
|
inline |
Set substitution policy for version-less primary seq-ids.
Definition at line 442 of file psg_client.hpp.
References m_AccSubstitution.
|
overrideprivatevirtual |
Implements CPSG_Request.
Definition at line 836 of file psg_client.cpp.
References fBlobId, fCanonicalId, fChainState, fDateChanged, fGi, fHash, fLength, fMoleculeType, fName, fOtherIds, fState, fTaxId, max(), s_GetAccSubstitution(), s_GetBioIdResolution(), and rapidjson::value.
|
inlineoverrideprivatevirtual |
Implements CPSG_Request.
Definition at line 446 of file psg_client.hpp.
References GetBioId(), and CPSG_BioId::Repr().
|
inlineoverrideprivatevirtual |
Implements CPSG_Request.
Definition at line 445 of file psg_client.hpp.
References CPSG_Request::eResolve.
|
private |
Definition at line 452 of file psg_client.hpp.
Referenced by SetAccSubstitution().
|
private |
Definition at line 449 of file psg_client.hpp.
Referenced by GetBioId().
|
private |
Definition at line 450 of file psg_client.hpp.
Referenced by GetBioIdResolution().
|
private |
Definition at line 451 of file psg_client.hpp.
Referenced by GetIncludeInfo(), and IncludeInfo().