NCBI C++ ToolKit
Classes | Namespaces | Macros | Functions
eutils_client.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbi_system.hpp>
#include <corelib/ncbistr.hpp>
#include <misc/eutils_client/eutils_client.hpp>
#include <misc/xmlwrapp/xmlwrapp.hpp>
#include <misc/xmlwrapp/event_parser.hpp>
#include <connect/ncbi_conn_stream.hpp>
#include <connect/ncbi_socket.hpp>
#include <misc/error_codes.hpp>
#include <cmath>
#include <sstream>
#include <iterator>
#include <algorithm>
#include <type_traits>
+ Include dependency graph for eutils_client.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CMessageHandlerDefault
 
class  CMessageHandlerDiagPost
 
class  CMessageHandlerThrowOnError
 
class  CEUtilsParser
 
class  CESearchParser< T >
 
class  CELinkParser< T >
 

Namespaces

 edirect
 

Macros

#define NCBI_USE_ERRCODE_X   Misc_EutilsClient
 
#define HOST_NAME_REFRESH_FREQ   100
 

Functions

string edirect::Execute (const string &cmmd, const vector< string > &args, const string &data=kEmptyStr)
 
static const char * s_GetErrCodeString (CEUtilsException::TErrCode err_code)
 
template<class T >
static void s_FormatIds (ostream &osm, const vector< T > &uids)
 
template<>
void s_FormatIds< CSeq_id_Handle > (ostream &osm, const vector< CSeq_id_Handle > &uids)
 
template<>
void s_FormatIds< string > (ostream &osm, const vector< string > &uids)
 
template<class T >
static T s_ParseId (const string &str)
 
template<>
CSeq_id_Handle s_ParseId< CSeq_id_Handle > (const string &str)
 
template<>
string s_ParseId< string > (const string &str)
 
static void s_SearchHistoryQuery (ostringstream &oss, const string &db, const string &term, const string &web_env, int retstart, int retmax)
 
static void s_SummaryHistoryQuery (ostream &oss, const string &db, const string &web_env, int retstart, const string version, int retmax)
 
static string s_GetContentType (CEutilsClient::EContentType content_type)
 
static void s_FetchHistoryQuery (ostream &oss, const string &db, const string &web_env, int retstart, int retmax, CEutilsClient::EContentType content_type)
 

Macro Definition Documentation

◆ HOST_NAME_REFRESH_FREQ

#define HOST_NAME_REFRESH_FREQ   100

Definition at line 923 of file eutils_client.cpp.

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Misc_EutilsClient

Definition at line 49 of file eutils_client.cpp.

Function Documentation

◆ s_FetchHistoryQuery()

static void s_FetchHistoryQuery ( ostream &  oss,
const string db,
const string web_env,
int  retstart,
int  retmax,
CEutilsClient::EContentType  content_type 
)
inlinestatic

Definition at line 1701 of file eutils_client.cpp.

References s_GetContentType(), and NStr::URLEncode().

Referenced by CEutilsClient::FetchHistory().

◆ s_FormatIds()

template<class T >
static void s_FormatIds ( ostream &  osm,
const vector< T > &  uids 
)
static

◆ s_FormatIds< CSeq_id_Handle >()

template<>
void s_FormatIds< CSeq_id_Handle > ( ostream &  osm,
const vector< CSeq_id_Handle > &  uids 
)

Definition at line 119 of file eutils_client.cpp.

References CSeq_id_Base::e_Gi, CSeq_id_Base::e_not_set, eUnknown, and NCBI_THROW.

◆ s_FormatIds< string >()

template<>
void s_FormatIds< string > ( ostream &  osm,
const vector< string > &  uids 
)

Definition at line 146 of file eutils_client.cpp.

◆ s_GetContentType()

static string s_GetContentType ( CEutilsClient::EContentType  content_type)
inlinestatic

◆ s_GetErrCodeString()

static const char* s_GetErrCodeString ( CEUtilsException::TErrCode  err_code)
static

◆ s_ParseId()

template<class T >
static T s_ParseId ( const string str)
inlinestatic

Definition at line 158 of file eutils_client.cpp.

References str().

◆ s_ParseId< CSeq_id_Handle >()

template<>
CSeq_id_Handle s_ParseId< CSeq_id_Handle > ( const string str)
inline

Definition at line 163 of file eutils_client.cpp.

References CSeq_id_Handle::GetHandle(), and str().

◆ s_ParseId< string >()

template<>
string s_ParseId< string > ( const string str)
inline

Definition at line 168 of file eutils_client.cpp.

References str().

◆ s_SearchHistoryQuery()

static void s_SearchHistoryQuery ( ostringstream &  oss,
const string db,
const string term,
const string web_env,
int  retstart,
int  retmax 
)
static

Definition at line 853 of file eutils_client.cpp.

References NStr::URLEncode().

Referenced by CEutilsClient::SearchHistory().

◆ s_SummaryHistoryQuery()

static void s_SummaryHistoryQuery ( ostream &  oss,
const string db,
const string web_env,
int  retstart,
const string  version,
int  retmax 
)
inlinestatic

Definition at line 1536 of file eutils_client.cpp.

References NStr::URLEncode(), and version.

Referenced by CEutilsClient::SummaryHistory().

Modified on Sun Apr 14 05:28:38 2024 by modify_doxy.py rev. 669887