47 #define NCBI_USE_ERRCODE_X Objects_Taxonomy
101 if( ( (
tmp=getenv(
"NI_TAXON3_SERVICE_NAME")) !=
NULL ) ||
102 ( (
tmp=getenv(
"NI_SERVICE_NAME_TAXON3")) !=
NULL ) ) {
131 request->SetRequest().push_back(rq);
137 if (!reply->IsSetReply()) {
144 reply->SetReply().push_back(t3reply);
157 return Get(
key, cache_getflags);
static const char * kInvalidReplyMsg
CCachedTaxon3(AutoPtr< ITaxon3 > taxon, TSizeType capacity)
CRef< CTaxon3_reply > x_GetReplyForOrgRef(const COrg_ref &org_ref)
virtual CRef< CTaxon3_reply > SendOrgRefList(const vector< CRef< COrg_ref > > &list)
ESerialDataFormat m_eDataFormat
static AutoPtr< CCachedTaxon3 > Create(AutoPtr< ITaxon3 > taxon, TSizeType capacity=100000)
virtual CRef< CTaxon3_reply > SendRequest(const CTaxon3_request &request)
const char * m_pchService
static CCachedTaxon3 * CreateUnSafe(AutoPtr< ITaxon3 > taxon, TSizeType capacity=100000)
unsigned m_nReconnectAttempts
CRef< CTaxon3_reply > x_AddReplyToCache(const TCacheKey &key, const COrg_ref &org_ref)
AutoPtr< ITaxon3 > m_taxon
The cached taxon does not own the taxon.
virtual CRef< CTaxon3_reply > SendRequest(const CTaxon3_request &request)=0
The NCBI C++ standard methods for dealing with std::string.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
int TAddFlags
bitwise OR of EAddFlags
TValueType Get(const TKeyType &key, TGetFlags get_flags=0, EGetResult *result=NULL)
Get an object from the cache by its key.
TOrder Add(const TKeyType &key, const TValueType &value, TWeight weight=1, TAddFlags add_flags=0, EAddResult *result=NULL)
Add new element to the cache or replace the existing value.
@ fAdd_NoReplace
Do not replace existing values if any.
@ fGet_NoTouch
Do not update the object's position.
@ fGet_NoInsert
Do not insert created values.
@ fGet_NoCreate
Do not create value if not found, throw an exception instead.
@ eGet_Found
The key was found in the cache.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
void Trace(CExceptionArgs_Base &args)
void Warning(CExceptionArgs_Base &args)
C * SerialClone(const C &src)
Create on heap a clone of the source object.
@ eSerial_AsnText
ASN.1 text.
@ eSerial_AsnBinary
ASN.1 binary.
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
const TTaxname & GetTaxname(void) const
Get the Taxname member data.
bool IsSetTaxname(void) const
preferred formal name Check if a value has been assigned to Taxname data member.
void SetLevel(TLevel value)
Assign a value to Level data member.
void SetMessage(const TMessage &value)
Assign a value to Message data member.
TError & SetError(void)
Select the variant.
Definition of all error codes used in objects libraries.
constexpr auto front(list< Head, As... >, T=T()) noexcept -> Head
const struct ncbi::grid::netcache::search::fields::KEY key
static const STimeout def_timeout