NCBI C++ ToolKit
|
Search Toolkit Book for CPSG_Request
Request to the PSG server (see "CPSG_Request_*" below) More...
#include <objtools/pubseq_gateway/client/psg_client.hpp>
Public Types | |
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 | |
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... | |
Protected Member Functions | |
template<class T > | |
T | GetCtx (T c) |
CPSG_Request (shared_ptr< void > user_context={}, CRef< CRequestContext > request_context={}) | |
virtual | ~CPSG_Request ()=default |
Private Member Functions | |
virtual EType | x_GetType () const =0 |
virtual string | x_GetId () const =0 |
virtual void | x_GetAbsPathRef (ostream &) const =0 |
Private Attributes | |
shared_ptr< void > | m_UserContext |
CRef< CRequestContext > | m_RequestContext |
TOptionalFlags | m_Flags |
SPSG_UserArgs | m_UserArgs |
Friends | |
class | CPSG_Queue |
Request to the PSG server (see "CPSG_Request_*" below)
Definition at line 99 of file psg_client.hpp.
using CPSG_Request::TOptionalFlags = CNullable<TFlags> |
Definition at line 117 of file psg_client.hpp.
enum CPSG_Request::EFlags |
Enumerator | |
---|---|
fExcludeHUP | |
fIncludeHUP | |
eDefaultFlags |
Definition at line 111 of file psg_client.hpp.
enum CPSG_Request::EType | ( | void | ) |
Enumerator | |
---|---|
eBiodata | |
eResolve | |
eBlob | |
eNamedAnnotInfo | |
eChunk | |
eIpgResolve |
Definition at line 102 of file psg_client.hpp.
|
inlineprotected |
Definition at line 149 of file psg_client.hpp.
|
protectedvirtualdefault |
CPSG_Request::DECLARE_SAFE_FLAGS_TYPE | ( | EFlags | , |
TFlags | |||
) |
Definition at line 147 of file psg_client.hpp.
References CRequestContext::Clone(), and CDiagContext::GetRequestContext().
Referenced by SetRequestContext().
|
inline |
Definition at line 134 of file psg_client.hpp.
References x_GetId().
|
inline |
|
inline |
|
inline |
Get the user-provided context.
Definition at line 121 of file psg_client.hpp.
References m_UserContext.
|
inline |
|
inline |
Set request context.
Definition at line 1351 of file psg_client.hpp.
References GetCtx(), and m_RequestContext.
|
inline |
Set arbitrary URL arguments to add to this request.
Definition at line 144 of file psg_client.hpp.
References m_UserArgs.
|
privatepure virtual |
|
privatepure virtual |
Implemented in CPSG_Request_Raw, CPSG_Request_IpgResolve, CPSG_Request_Chunk, CPSG_Request_NamedAnnotInfo, CPSG_Request_Blob, CPSG_Request_Resolve, and CPSG_Request_Biodata.
Referenced by GetId().
|
privatepure virtual |
Implemented in CPSG_Request_Raw, CPSG_Request_IpgResolve, CPSG_Request_Chunk, CPSG_Request_NamedAnnotInfo, CPSG_Request_Blob, CPSG_Request_Resolve, and CPSG_Request_Biodata.
Referenced by GetType().
|
friend |
Definition at line 167 of file psg_client.hpp.
|
private |
Definition at line 164 of file psg_client.hpp.
Referenced by SetFlags().
|
private |
Definition at line 163 of file psg_client.hpp.
Referenced by GetRequestContext(), and SetRequestContext().
|
private |
Definition at line 165 of file psg_client.hpp.
Referenced by SetUserArgs().
|
private |
Definition at line 162 of file psg_client.hpp.
Referenced by GetUserContext().