67 "/Traces/trace.cgi?&cmd=retrieve&retrieve=Submit&val="
72 if(isGeneratedBySvc) {
73 *isGeneratedBySvc =
false;
89 if (
m_Feat->IsSetComment() &&
m_Feat->GetComment() != t_title) {
95 CClone_ref::GetTypeInfo_enum_EPlacement_method();
98 if ( !method.empty() ) {
99 tooltip.
AddRow(
"Placement method:", method);
107 tooltip.
AddRow(
"Clone placement:", clone.
GetUnique() ?
"unique" :
"multiple");
136 if (info_map.
end() == info_map.
find(id_str))
139 id->GetLabel(&id_str);
141 if (info_map.
end() == info_map.
find(id_str))
191 if (0 == count.count(*itStr))
196 ITERATE(TStrCountMap, iter, count) {
203 string link_name(iter->first);
210 if (acc_info.
end() == itAccInfo) {
211 out_str += link_name;
228 size_t info =
id.IdentifyAccession();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@ eExtreme_Positional
numerical value
string x_FormatAccessionLinks(const ITooltipFormatter &tooltip, const vector< string > &strings, const TAccessionInfoMap &acc_info, bool occurences=true) const
map< CSeq_id::EAccessionInfo, string > TBaseURLforAccession
void x_IdentifyAccession(const CSeq_id &id, const string &id_str, TAccessionInfoMap &acc_info) const
virtual void GetLinks(ITooltipFormatter &links, bool no_ncbi_base) const
Get a set of links.
virtual void GetToolTip(ITooltipFormatter &tooltip, string &t_title, TSeqPos at_p=(TSeqPos) -1, bool *isGeneratedBySvc=NULL) const
Get tooltip.
map< string, TAccInfo > TAccessionInfoMap
static const string m_BaseURLs[]
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
container_type::const_iterator const_iterator
const_iterator end() const
const_iterator find(const key_type &key) const
static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const string & FindName(TEnumValueType value, bool allowBadValue) const
Find name of the enum by its numeric value.
virtual void FinishRow()=0
finish the row (i.e. no other contents will be added to it)
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
virtual void AddRow(const string &sContents="", unsigned colspan=2)=0
add a row with a cell, spanning across all columns
virtual void AddValueCol(const string &sContents="", unsigned width=200, bool isNoWrap=false)=0
adds a value column to the row
virtual void AddTagCol(const string &sContents="", const string &sBulletSrc="")=0
adds a tag column to the row
CRef< objects::CScope > m_Scope
CConstRef< objects::CSeq_feat > m_Feat
CConstRef< objects::CSeq_loc > m_Location
Mapped location in top sequence coordinate (can be set externally).
virtual void StartRow()=0
start a new table row
virtual string CreateNcbiLink(const string &sText, const string &sUrl) const =0
construct the HTML code for a link from the displayed text label and supplied NCBI URL path
void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const
Append a label for this Seq-id to the supplied string.
CConstRef< CSeq_id > GetSeqId(void) const
@ eContent
Untagged human-readable accession or the like.
const CSeq_id * GetId(void) const
Get the id of the location return NULL if has multiple ids or no id at all.
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#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.
static void TrimPrefixInPlace(string &str, const CTempString prefix, ECase use_case=eCase)
Trim prefix from a string (in-place)
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
@ fWithCommas
Use commas as thousands separator.
@ eNocase
Case insensitive compare.
TConcordant GetConcordant(void) const
Get the Concordant member data.
bool IsSetUnique(void) const
OPTIONAL? Check if a value has been assigned to Unique data member.
bool IsSetConcordant(void) const
OPTIONAL? Check if a value has been assigned to Concordant data member.
bool CanGetSeq(void) const
Check if it is safe to call GetSeq method.
list< CRef< CClone_seq > > Tdata
TSupport GetSupport(void) const
Get the Support member data.
bool IsSetPlacement_method(void) const
Check if a value has been assigned to Placement_method data member.
TUnique GetUnique(void) const
Get the Unique member data.
const Tdata & Get(void) const
Get the member data.
const TClone_seq & GetClone_seq(void) const
Get the Clone_seq member data.
TPlacement_method GetPlacement_method(void) const
Get the Placement_method member data.
const TSeq & GetSeq(void) const
Get the Seq member data.
bool CanGetSupport(void) const
Check if it is safe to call GetSupport method.
bool IsSetClone_seq(void) const
Check if a value has been assigned to Clone_seq data member.
@ eSupport_supporting
sequence supports placement
@ eSupport_supports_other
supports a different placement
@ eSupport_prototype
sequence used to place clone
@ eSupport_non_supporting
does not support any placement
@ e_General
for other databases
range(_Ty, _Ty) -> range< _Ty >
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char *const strings[]