TDesc::Tdata::iterator iter =
SetDesc().
Set().begin();
71 if((*iter)->IsName() ) {
98TDesc::Tdata::iterator iter =
SetDesc().
Set().begin();
100 if((*iter)->IsTitle() ) {
130TDesc::Tdata::iterator iter =
SetDesc().
Set().begin();
132 if((*iter)->IsCreate_date() ) {
154TDesc::Tdata::iterator iter =
SetDesc().
Set().begin();
156 if((*iter)->IsUpdate_date() ) {
220*acc_ptr = full_name.substr(0, pos);
224 if( num_pos+1 == full_name.size() && full_name[num_pos] ==
'*') {
225 if( zoom_level_ptr ) {
226*zoom_level_ptr = -1;
233 if( zoom_level_ptr ) {
234*zoom_level_ptr = zoom_level;
245*acc_ptr = full_name;
247 if( zoom_level_ptr ) {
266 if( zoom_level == -1 ) {
275 else if( incl_level != zoom_level ) {
278 "AddZoomLevel: Incompatible zoom levels: " 279<<acc<<
" vs "<<zoom_level);
287 case eZoom:
return "Bad zoom level";
297 #undef NCBI_USE_ERRCODE_Xstatic const size_t NCBI_ANNOT_TRACK_ZOOM_LEVEL_SUFFIX_LEN
#define NCBI_ANNOT_TRACK_ZOOM_LEVEL_SUFFIX
Named annotations zoom level can be encoded in the accession string with @ suffix,...
virtual const char * GetErrCodeString(void) const override
Get error code interpreted as text.
void AddUserObject(CUser_object &obj)
void SetTitle(const string &title)
bool IsSeq_table(void) const
static string CombineWithZoomLevel(const string &acc, int zoom_level)
Combine accession string and zoom level into a string with separator.
void SetNameDesc(const string &name)
void SetCreateDate(const CTime &dt)
static void AddZoomLevel(string &acc, int zoom_level)
void SetUpdateDate(const CTime &dt)
void AddName(const string &name)
void SetTitleDesc(const string &title)
static bool ExtractZoomLevel(const string &full_name, string *acc_ptr, int *zoom_level_ptr)
Extract optional zoom level suffix from named annotation string.
void AddTitle(const string &title)
bool IsFtable(void) const
void AddComment(const string &comment)
TErrCode GetErrCode(void) const
Get error code.
#define NCBI_THROW_FMT(exception_class, err_code, message)
The same as NCBI_THROW but with message processed as output to ostream.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_STD::string::size_type SIZE_TYPE
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
Tdata & Set(void)
Assign a value to data member.
TTitle & SetTitle(void)
Select the variant.
bool IsAlign(void) const
Check if variant Align is selected.
TName & SetName(void)
Select the variant.
bool IsSetData(void) const
Check if a value has been assigned to Data data member.
TUser & SetUser(void)
Select the variant.
TComment & SetComment(void)
Select the variant.
bool IsGraph(void) const
Check if variant Graph is selected.
bool IsFtable(void) const
Check if variant Ftable is selected.
const TData & GetData(void) const
Get the Data member data.
bool IsSeq_table(void) const
Check if variant Seq_table is selected.
TUpdate_date & SetUpdate_date(void)
Select the variant.
bool IsIds(void) const
Check if variant Ids is selected.
TDesc & SetDesc(void)
Assign a value to Desc data member.
TCreate_date & SetCreate_date(void)
Select the variant.
bool IsLocs(void) const
Check if variant Locs is selected.
Definition of all error codes used in objects libraries.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4