=
"scale";
167 GetChildren().front()->GetHTMLActiveAreas(p_areas);
170 GetChildren().front()->GetHTMLActiveAreas(&areas);
171 for(
auto& area : areas) {
172area.m_ParentId =
GetId();
173area.m_Descr.clear();
177&& area.m_Signature !=
"otl") {
181p_areas->insert(p_areas->end(), areas.begin(), areas.end());
188 bound.SetBottom(
bound.Top() + (
TVPUnit)tb_height + (tb_height > 0.0 ? 2 : 0));
200 m_Sel.ResetAnnotsNames();
203 m_Sel.AddUnnamedAnnots();
231 stringcache_svc = reg.
GetString(
"Configuration",
"service",
"NC_SV_Conf_PROD");
232 stringcache_name = reg.
GetString(
"Configuration",
"cache",
"conf");
239 returncache_instance;
287}
catch(exception& e) {
293 boolparameter_present =
false, smooth_curve =
false;
294 stringscale, clip_outliers, outlier_color, sd_thresh, stored_scale, num_bins, neg_color, value_range;
306hist_settings.
m_Color= iter->second;
307parameter_present =
true;
310opacity = (opacity <= 0) ? 100 :
min(opacity, 100);
311parameter_present =
true;
314parameter_present =
true;
316hist_settings.
m_Type= iter->second;
317parameter_present =
true;
319scale = iter->second;
320parameter_present =
true;
322stored_scale = iter->second;
323parameter_present =
true;
328outlier_color = iter->second;
329parameter_present =
true;
331sd_thresh = iter->second;
332parameter_present =
true;
334neg_color = iter->second;
335parameter_present =
true;
337num_bins = iter->second;
338parameter_present =
true;
340value_range = iter->second;
341parameter_present =
true;
345}
catch(exception& e) {
348parameter_present =
true;
351fit_step = max<int>(fit_step, 1);
352parameter_present =
true;
354}
catch(std::exception&) {
355 LOG_POST(
Error<<
"CGraphTrack::x_LoadSettings: invalid settings " 362 if(!parameter_present)
378 if( !hist_settings.
m_Color.empty() ) {
390 if(!neg_color.empty())
392 floatalpha = opacity;
402 if( !hist_settings.
m_Type.empty() ) {
404hist_conf->
m_Type= style;
424 if(!scale.empty()) {
428 if(!stored_scale.empty()) {
432 if(!clip_outliers.empty()) {
436 if(!outlier_color.empty()) {
440 if(!sd_thresh.empty()) {
444 if(!num_bins.empty()) {
449 if(!value_range.empty()) {
450 stringrange_min, range_max;
452 if(!range_min.empty() && range_min !=
"inf") {
455 if(!range_max.empty() && range_max !=
"inf") {
469}
catch(std::exception&) {
470 LOG_POST(
Error<<
"CGraphTrack::x_LoadSettings: invalid histogram settings");
477vector<string> settings;
513 ERR_POST(
"CGraphTrack::x_OnJobCompleted() notification for job \ 514 does not contain results.");
523vector<string> titles;
536titles.push_back(title);
543uo->
SetType().SetStr(
"YLimits");
552}
catch(exception& e) {
577 msg+= (
count!= 1 ?
"s shown":
" shown");
597 config->m_ShowConnection =
false;
606group->PushBack(
label);
614group->PushBack(*iter);
629track_proxy =
dynamic_cast<CTrackProxy*
>(&**iter);
632 if((*iter)->GetOrder() == order)
644wxMenuItem* item = menu.AppendCheckItem(id_base++,
wxT(
"Fixed scale"));
648vector<CRef<CHistogramGlyph>> graphs;
649vector<wxMenuItem*> settings_menu;
651 if(!graphs.empty()) {
652menu.AppendSeparator();
653 for(
autograph : graphs) {
655 static const intkMaxMenuItemLen = 50;
656 if(s.Length() > kMaxMenuItemLen) {
657s.Truncate(kMaxMenuItemLen - 3);
660settings_menu.push_back(menu.AppendCheckItem(id_base++, s));
665wxMenuItem* move_item = 0;
667menu.AppendSeparator();
668move_item = menu.AppendCheckItem(id_base,
wxT(
"Remove from parent container"));
678 for(
size_t i= 0;
i< settings_menu.size() &&
i< graphs.size(); ++
i) {
679 if(!settings_menu[
i]->IsChecked())
681graphs[
i]->RunSettingsDialog();
684 if(move_item && move_item->IsChecked()) {
691 if((*iter)->GetOrder() ==
GetOrder()) {
692proxy.
Reset(*iter);
705 if((*ch_it)->GetOrder() >= new_order) {
706new_order = (*ch_it)->GetOrder() + 1;
711 if((*it)->GetOrder() ==
GetOrder()) {
719n_proxy->CTempTrackProxy::operator=(*proxy);
720n_proxy->SetKey(
"graph_track");
721n_proxy->SetOrder(new_order);
722n_proxy->SetTrack(proxy->
GetTrack());
723n_proxy->GetTrack()->SetShowTitle(
true);
728annots.push_back(
gt->GetAnnot());
729n_proxy->SetAnnots(annots);
739top_container->
Update(
true);
749vector<int> tracks2remove;
751 if(!current_track_proxy)
753tracks2remove.push_back(current_track_proxy->
GetOrder());
757 if(!current_track_proxy->
GetId().empty())
765subtrack_proxy->
SetOrder(order++);
766new_track->
GetChildren().push_back(subtrack_proxy);
771 if(!current_track_proxy)
775subtrack_proxy->
SetOrder(order++);
776new_track->
GetChildren().push_back(subtrack_proxy);
778 if(!current_track_proxy->
GetId().empty())
784tracks2remove.push_back(
gt->GetOrder());
786 stringtrack_source =
"graphs:";
790annots.push_back(track_source);
796*overlay_params = *this_params;
798 ITERATE(vector<int>, it, tracks2remove) {
822TAnnotGroup annot_group;
828 stringgraph_cache_key;
830 boolis_cached_bigwig =
false;
831 if(!graph_cache_key.empty()) {
840 if(is_cached_bigwig) {
844 boolisCoverageCheckFinished{
false};
864 if(seqtable_annots.count(*iter) > 0) {
872isCoverageCheckFinished =
true;
873}
NCBI_CATCH(
"CGraphTrackFactory::CreateTracks()");
875 if(!isCoverageCheckFinished) {
930 ITERATE(TAnnotGroup, g_iter, annot_group) {
950track->SetAnnot(iter->first);
952 if( !iter->second.empty() ) {
953track->SetTitle(iter->second);
955 if(!graph_cache_key.empty()) {
997 config->SetLegend_text(
"anchor_12");
1004 boolsmooth_curve =
false;
1005 stringfit_step =
"4";
1009 config->SetHidden_settings().push_back(
1012 config->SetHidden_settings().push_back(
1015 config->SetHidden_settings().push_back(
1018 config->SetHidden_settings().push_back(
1021 config->SetHidden_settings().push_back(
1028value_range = iter->second;
1034 config->SetHidden_settings().push_back(
1037 config->SetHidden_settings().push_back(
1042fit_step = iter->second;
1044}
catch(std::exception&) {
1049scale = stored_scale;
1053 "style",
"Display Style",
1055 "Display style for graph data");
1056choice->SetValues().push_back(
1060 "Shown as a histogram",
1061 "Graph data are shown as a histogram"));
1062choice->SetValues().push_back(
1066 "Shown as a heat map",
1067 "Graph data are shown as a heat map (smear bar)"));
1068choice->SetValues().push_back(
1072 "Shown as a line graph",
1073 "Graph data are shown as a line graph"));
1074 config->SetChoice_list().push_back(choice);
1078 kScale,
"Linear/Log Scale",
1080 "Scale for graph data");
1081choice->SetValues().push_back(
1085 "Shown at linear scale",
1086 "Graph data is shown at linear scale"));
1087choice->SetValues().push_back(
1091 "Shown at log base 10 scale",
1092 "Graph data is shown at logarithmic (base 10) scale"));
1093choice->SetValues().push_back(
1097 "Shown at natural logarithm (base e) scale",
1098 "Graph data is shown at natural logrithm (base e) scale"));
1099choice->SetValues().push_back(
1103 "Shown at log base 2 scale",
1104 "Graph data is shown at logarithmic (base 2) scale"));
1105 config->SetChoice_list().push_back(choice);
1108 config->SetCheck_boxes().push_back(
1110 "smooth_curve",
"Smooth curve",
"Smooth curve",
"", smooth_curve));
1112 boolrange_autoscale =
true;
1113 stringrange_min, range_max;
1114 if(!value_range.empty()) {
1115 stringr_min, r_max;
1117 if(!r_min.empty() && r_min !=
"inf") {
1118range_min = (errno) ?
"": r_min;
1120 if(!r_max.empty() && r_max !=
"inf") {
1121range_max = (errno) ?
"": r_max;
1123 config->SetHidden_settings().push_back(
1129 "Set Value Range (Data outside range will be clipped)",
1130 "Set Value Range (Data outside range will be clipped)",
1136 autocondition =
Ref(
newobjects::CConditional);
1137condition->SetName(
kScale);
1142range_control->SetConditions().push_back(condition);
1145 autocondition =
Ref(
newobjects::CConditional);
1146condition->SetName(
"style");
1149range_control->SetConditions().push_back(condition);
1152 config->SetRange_controls().push_back(range_control);
1162legend_item->SetLabel(track_proxy->
GetSource());
1163legend_item->SetColor(
"blue");
1164legend_item->SetId(
"");
1174 color= iter->second;
1177opacity = (opacity <= 0) ? 100 :
min(opacity, 100);
1181}
catch(std::exception&) {
1182 LOG_POST(
Error<<
"CGraphTrack::GetLegend: invalid settings "<< iter->second);
1185 boolcolor_is_set =
false;
1187 if(!
color.empty()) {
1190color_is_set =
true;
1191}
catch(exception& e) {
1196 if(color_is_set ==
false) {
1212 if(opacity < 100 && opacity > 0) {
1213 floatalpha = opacity;
1217legend_item->SetColor(c.
ToString());
1220legend_item->SetLabel(
label);
1221legend.push_back(legend_item);
1239axis_max =
max(hg->
GetMax(), axis_max);
1240axis_min =
min(hg->
GetMin(), axis_min);
1274 if(vis_r.
Empty())
1329 config->m_ShowConnection =
false;
1335group->SetLayoutPolicy(
m_Simple);
1336group->SetRenderingContext(
m_Context);
1338group->PushBack(
label);
1339group->PushBack(hg);
1342glyphs.push_back(*hist_it);
1345 if(!glyphs.empty())
1355 if(
lg&&
lg->GetChildrenNum() == 2) {
1360graphs.push_back(
g);
1370 if(!graphs.empty()) {
1395 return(
gt!= 0 &&
gt->GetChildren().size() == 1);
1400vector<CRef<CGraphTrack>> tracks;
1402 if(
gt&&
gt->GetChildren().size() == 1) {
1403tracks.push_back(
Ref(
gt));
1415 if(
lg&&
lg->GetChildrenNum() == 2) {
1422graphs.push_back(
Ref(hg));
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Checksum and hash calculation classes.
CAppJobNotification Notification send by CAppJobEventTranslator.
CChecksum â Checksum calculator.
CDataTrack - a abstract base class for layout tracks which need to deal with background data retrieva...
virtual void Update(bool layout_only)
Update content and layout including the bounding box.
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
virtual void x_RenderContent() const
The content rendering must be implemented in the derived layout tracks.
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
void Add(CSeqGlyph *obj)
Append a layout object to the end.
void SetObjects(const CLayoutGroup::TObjectList &objs)
CLayoutGroup & SetGroup()
const CLayoutGroup::TObjectList & GetChildren() const
const CLayoutGroup & GetGroup() const
CLayoutGroup::TObjectList & SetChildren()
CRef< CLayeredLayout > m_Layered
CRef< CSimpleLayout > m_Simple
void SetLayoutPolicy(ILayoutPolicy *policy)
Set policy on how to deploy the layout of its children.
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual CRef< objects::CTrackConfigSet > GetSettings(const string &profile, const TKeyValuePairs &settings, const CTempTrackProxy *track_proxy) const
virtual void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const ILayoutTrackFactory::SExtraParams ¶ms, TAnnotNameTitleMap &out_annots) const
virtual TTrackMap CreateTracks(SConstScopedObject &object, ISGDataSourceContext *ds_context, CRenderingContext *r_cntx, const SExtraParams ¶ms=SExtraParams(), const TAnnotMetaDataList &src_annots=TAnnotMetaDataList()) const
create a layout track based on the input objects and extra parameters.
virtual const CTrackTypeInfo & GetThisTypeInfo() const
virtual CRef< CSGGenBankDS > GetDataSource()
Method for accessing the data source.
virtual void x_LoadSettings(const string &preset_style, const TKeyValuePairs &settings)
load the track settings.
objects::SAnnotSelector m_Sel
void SetAnnot(const string &annot)
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
bool CreateOverlay(vector< CRef< CGraphTrack >> &tracks)
virtual bool Drop(CRef< CLayoutTrack > &track)
static const string kOverlayed
static CNetICacheClient & s_GetICacheInstance()
void x_OnSettingsIconClicked()
bool m_FixedScale
Dynamic or fixed graph scale.
static string x_LayoutValueToStr(ELayout layout)
static ELayout x_LayoutStrToValue(const string &layout)
virtual void x_OnJobCompleted(CAppJobNotification ¬ify)
CGraphTrack(CSGGraphDS *ds, CRenderingContext *r_cntx)
static CNetICacheClient s_InitICache()
virtual void x_OnLayoutChanged()
update the layout.
CRef< CHistogramGlyph > m_Grid
virtual CHTMLActiveArea * InitHTMLActiveArea(TAreaVector *p_areas) const
Initialize the HTML active area for a track.
virtual void x_RenderContent() const
The content rendering must be implemented in the derived layout tracks.
void SetLayout(ELayout layout)
CSGGraphDS::TAxisLimits m_YLimits
Graph y limits stored when FixedScale is set.
virtual const CTrackTypeInfo & GetTypeInfo() const
virtual bool CanDrop(CRef< CLayoutTrack > &track)
virtual void x_UpdateData()
update track content.
virtual void GetLegend(const CTempTrackProxy *track_proxy, objects::CTrackConfig::TLegend &legend) const
static CTrackTypeInfo m_TypeInfo
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
void x_CollectAllGraphs(vector< CRef< CHistogramGlyph >> &graphs) const
virtual void x_SaveSettings(const string &preset_style)
save part of settings to a profile string.
string m_Descr
description that can be used as label or tooltip
@ fNoNavigation
track title won't show navigation controls
int m_Flags
area flags, will need to replace m_Type
void AddSettings(const string &name, CRef< CHistParams > hist_params)
Add a new settings for a given name.
bool HasSettings(const string &name) const
Check if there is settings for a given name.
CRef< CHistParams > GetDefHistParams() const
CRef< CHistParams > GetHistParams(TFeatSubtype subtype) const
Get histogram settings using feature subtype.
CRgbaColor m_SmearColorMin
static EType TypeStrToValue(const string &type)
int m_SDeviationThreshold
EScale m_StoredScale
stored scale of the underlying data (e.g. as reported by TMS)
CRgbaColor m_OutlierColor
static EScale ScaleStrToValue(const string &scale)
static const string & TypeValueToStr(CHistParams::EType type)
static const string & ScaleValueToStr(CHistParams::EScale scale)
EScale m_Scale
requested scale
CRange< float > m_ValueRange
CRgbaColor m_SmearColorMax
const string & GetAnnotName() const
void SetAxisMin(TDataType min)
TDataType GetAxisMin() const
void SetShowTitle(bool f)
void SetAnnotName(const string &name)
void SetAxisMax(TDataType max)
void SetFixedScale(bool value)
const string & GetTitle() const
TDataType GetAxisMax() const
Get the axis limits (max/min).
TDataType GetMax() const
Get the actually density max/min values.
void SetRenderingMode(ERenderingMode mode)
void SetDesc(const string &desc)
void DrawGrid(bool include_background) const
void SetConfig(const CSeqGraphicConfig &config)
CLayoutGroup is a container of CSeqGlyphs (layout objects).
TObjectList & SetChildren()
const TObjectList & GetChildren() const
CLayoutGroup inline methods.
ILayoutPolicy::TObjectList TObjectList
bool m_Expanded
is this track in expanded state
@ eIcon_Settings
icon id for track settings
ILayoutTrackHost * m_LTHost
Top level host owning the tracks.
string m_Title
track title
bool m_On
is this track shown
CLayoutTrack * GetParentTrack()
void x_OnLayoutChanged()
update the layout.
const string & GetId() const
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
TModelUnit x_GetTBHeight() const
Get title bar height including margin.
void SetMsg(const string &msg)
CConstRef< CSeqGraphicConfig > x_GetGlobalConfig() const
Method for getting global configuration from rendering context.
void SetProfile(const string &preset_style)
CLayoutTrack inline method implmentation.
CRef< CSeqGraphicConfig > m_gConfig
global configuration.
int TIconID
use int as TIconID instead of EIconID.
virtual CHTMLActiveArea * InitHTMLActiveArea(TAreaVector *p_areas) const
Initialize the HTML active area for a track.
void x_RegisterIcon(const SIconInfo &icon)
register track icons.
static CNcbiApplication * Instance(void)
Singleton method.
Client to NetCache server (implements ICache interface)
COverlayLayout is the layout policy that arranges glyphs over the top of each other.
Note about the "buf_size" parameter for streams in this API.
@ fOwnReader
Own the underlying reader.
@ fOwnWriter
Own the underlying writer.
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
const TSeqRange & GetVisSeqRange() const
TModelRange IntersectVisible(const CSeqGlyph *obj) const
class CRgbaColor provides a simple abstraction for managing colors.
static void ParseProfileString(const string &profile_str, TKeyValuePairs &settings)
virtual bool AllJobsFinished() const
void SetJobListener(CEventHandler *listener)
Set JobDispatcher listener.
virtual void ClearJobID(TJobID job_id)
void SetDepth(int depth)
Set the annotation selector resolving depth.
virtual void DeleteAllJobs()
Remove waiting jobs from queue or cancel the unfinished jobs.
void SetAdaptive(bool flag)
void LoadSeqGraphs(const string &annotName, objects::SAnnotSelector &sel, CRenderingContext &ctx, bool fixed_scale, const TAxisLimits &y_limits, CConstRef< CSeqGraphicConfig > config)
void GetSeqtableAnnots(objects::SAnnotSelector &sel, const TSeqRange &range, TAnnotNameTitleMap &names) const
void SetSeqTable(bool f)
inline methods
void SetGraphCacheKey(const string &graph_cache_key)
void GetAnnotNames(objects::SAnnotSelector &sel, const TSeqRange &range, TAnnotNameTitleMap &names, bool seq_table=false) const
CSGJobResult â the data structure holding the seqgraphic job results.
void x_InitHTMLActiveArea(CHTMLActiveArea &area) const
initialize the basic information for a given active area.
CRenderingContext * m_Context
the rendering context
virtual void SetHeight(TModelUnit h)
void SetParent(CSeqGlyph *p)
virtual void SetWidth(TModelUnit w)
virtual void SetLeft(TModelUnit l)
virtual TModelUnit GetTop() const
virtual TModelUnit GetHeight() const
virtual void Update(bool)
Update content and layout including the bounding box.
virtual void SetTop(TModelUnit b)
virtual TModelUnit GetWidth() const
virtual TModelUnit GetLeft() const
vector< CHTMLActiveArea > TAreaVector
list< CRef< CSeqGlyph > > TObjects
void SetRenderingContext(CRenderingContext *context)
Set the rendering context.
CRef< CHistParamsManager > GetHistParamsManager() const
Get histogram config manager.
list< CRef< CTempTrackProxy > > TTrackProxies
const string & GetKey() const
const TAnnots & GetAnnots() const
const string & GetId() const
const string & GetTrackProfile() const
const TTrackProxies & GetChildren() const
void SetOrder(int order)
CTempTrackProxy class implementation.
TSubTracks & SetSubTracks()
const string & GetStoredScale() const
void SetAnnots(const TAnnots &annots)
const CLayoutTrack * GetTrack() const
const TSubTracks & GetSubTracks() const
const string & GetSource() const
static CRef< objects::CChoice > CreateChoice(const string &name, const string &disp_name, const string &curr_val, const string &help, bool optional=false)
static CRef< objects::CHiddenSetting > CreateHiddenSetting(const string &name, const string &value)
static CRef< objects::CCheckBox > CreateCheckBox(const string &name, const string &disp_n, const string &help_text, const string &legend_txt, bool value, bool optional=false)
static CRef< objects::CRangeControl > CreateRangeControl(const string &name, const string &disp_name, const string &help, const string &value_min, const string &value_max, bool autoscale=true, bool inverse=false, bool optional=false)
static void DecodeValueRange(const string &value_range, string &range_min, string &range_max, bool &range_auto)
static CRef< objects::CChoiceItem > CreateChoiceItem(const string &name, const string &disp_name, const string &help, const string &legend_txt, bool optional=false)
CTrackContainer - a track container in the form of layout track.
const TTrackProxies & GetSubtrackProxies() const
CTrackContainer inline methods.
void AddTrackProxy(CTempTrackProxy *proxy, bool upgateMsg=true)
Add a track proxy.
CTrackProxy * AddNewTrack(const string &track_key, const CTrackProxy::TAnnots &annots, const string &disp_name, const string &name="", const string &filter="", const string &sub_key="")
Add a new empty track proxy.
virtual void RemoveTrack(int order, bool immediately=true)
completely remove a track from the hierachical tree.
void MoveTrack(int from, int to)
CTempTrackProxy::TTrackProxies TTrackProxies
CTrackProxy data structure contains information about the position of a track in its parent scope,...
virtual CRef< CTempTrackProxy > Clone() const
CTrackTypeInfo - holds description of a layout track type.
const string & GetDescr() const
const string & GetId() const
bool HasField(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const
Verify that a named field exists.
CUser_object & AddField(const string &label, const string &value, EParseField parse=eParse_String)
add a data field to the user object that holds a given value
const CUser_field & GetField(const string &str, const string &delim=".", NStr::ECase use_case=NStr::eCase) const
Access a named field in this user object.
Writer-based output stream.
map< string, string > TAnnotNameTitleMap
List of annotations with the corresponding titles.
static void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const vector< string > &target_annots, const string &annot_type, const string &track_type, TAnnotNameTitleMap &out_annots)
Help function to find matched annotations.
virtual void LTH_PopupMenu(wxMenu *menu)=0
show track-specific context menu.
ISGDSManager is seqgraphic data source manage that serves as an data source context.
virtual CIRef< ISGDataSource > GetDS(const string &type, SConstScopedObject &object)=0
Get a seqgraphic data source instance of the specified type.
iterator_bool insert(const value_type &val)
container_type::value_type value_type
static const string kSeqGraph
static const string kScale
static const string kNumBins
static const string kSDeviationThreshold
CTrackProxy * s_FindTrackProxy(CTrackContainer &p_track, int order)
static const string kOutlierColor
static const string kClipOutliers
static string s_GetCacheKey(const string &annot_name)
static const CGraphTrack::ELayout kDefaultLayout
static const string kSeqTable
CGraphTrackFactory methods.
static const string kTrackTitle
CGraphTrack.
static const bool kDefaultFixedScale
static const string kNegColor
static const string kValueRange
static const string kStoredScale
const CNcbiRegistry & GetConfig(void) const
Get the application's cached configuration parameters (read-only).
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERASE_ITERATE(Type, Var, Cont)
Non-constant version with ability to erase current element, if container permits.
#define VECTOR_ERASE(Var, Cont)
Use this macro inside body of ERASE_ITERATE cycle to erase from vector-like container.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
string GetHexSum(void) const
Return string with checksum in hexadecimal form.
void AddLine(const char *line, size_t len)
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
static TAnnotNameType NameTypeStrToValue(const string &type)
static bool isRmtAnnotName(const string &sAnnotname)
check if a given annotation was created by a remote file pipeline
@ eAnnot_Unnamed
unnamed annotation
string ToString(bool printAlpha=true, bool uchars=true) const
Return a string representation of the current color.
CRef< CObject > GetResult() const
returns non-null pointer only if Completed or Running and has temporary results available
static bool GetKey(const TTrackSettings &TrackSettings, const string &key, string &value)
returns a specified key; if it does not exist, returns false
void FromString(const string &str)
Assign color values encoded in a string.
void Lighten(float scale)
@ eSerial_AsnBinary
ASN.1 binary.
IReader * GetReadStream(const string &key, int version, const string &subkey, size_t *blob_size_ptr, const CNamedParameterList *optional=NULL)
Read a lengthy blob via the IReader interface.
virtual bool HasBlobs(const string &key, const string &subkey)
Check if any BLOB exists (any version)
virtual IWriter * GetWriteStream(const string &key, int version, const string &subkey, unsigned int time_to_live=0, const string &owner=kEmptyStr)
Return sequential stream interface to write BLOB data.
static CObjectOStream * Open(ESerialDataFormat format, CNcbiOstream &outStream, bool deleteOutStream)
Create serial object writer and attach it to an output stream.
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
SAnnotSelector & ExcludeNamedAnnots(const CAnnotName &name)
Add named annot to set of annots names to exclude.
CRef< C > Ref(C *object)
Helper functions to get CRef<> and CConstRef<> objects.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
static position_type GetEmptyFrom(void)
TThisType & Set(position_type from, position_type to)
static position_type GetEmptyTo(void)
static TThisType GetWhole(void)
virtual string GetString(const string §ion, const string &name, const string &default_value, TFlags flags=0) const
Get the parameter string value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool StringToBool(const CTempString str)
Convert string to bool.
static string SizetToString(size_t value, TNumToStringFlags flags=0, int base=10)
Convert size_t to string.
static int StringToNonNegativeInt(const CTempString str, TStringToNumFlags flags=0)
Convert string to non-negative integer value.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static const string BoolToString(bool value)
Convert bool to string.
static string Join(const TContainer &arr, const CTempString &delim)
Join strings using the specified delimiter.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
@ fConvErr_NoThrow
Do not throw an exception on error.
static const char label[]
void SetFrom(TFrom value)
Assign a value to From data member.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
void SetTo(TTo value)
Assign a value to To data member.
const TData & GetData(void) const
Get the Data member data.
TReal GetReal(void) const
Get the variant data.
void SetType(TType &value)
Assign a value to Type data member.
list< CRef< CLegendItem > > TLegend
Tdata & Set(void)
Assign a value to data member.
constexpr bool empty(list< Ts... >) noexcept
double value_type
The numeric datatype used by the parser.
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
NetCache ICache client specs.
T bound(T x_, T xlo_, T xhi_)
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
Reader-writer based streams.
static SLJIT_INLINE sljit_ins lg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
A help struct for storing information about a icon.
SCustomizedHistSettings()
int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)
void UseDefaultMarginWidth(wxMenu &menu)
Using default menu item margin width.
wxString ToWxString(const string &s)
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