NCBI C++ ToolKit
|
Search Toolkit Book for ISGDataSourceContext
ISGDSManager is seqgraphic data source manage that serves as an data source context. More...
#include <gui/widgets/seq_graphic/seqgraphic_ds_manager.hpp>
Public Member Functions | |
virtual | ~ISGDataSourceContext () |
virtual CIRef< ISGDataSource > | GetDS (const string &type, SConstScopedObject &object)=0 |
Get a seqgraphic data source instance of the specified type. More... | |
virtual void | ClearCache ()=0 |
clear the cache if any. More... | |
ISGDSManager is seqgraphic data source manage that serves as an data source context.
Definition at line 54 of file seqgraphic_ds_manager.hpp.
|
inlinevirtual |
Definition at line 57 of file seqgraphic_ds_manager.hpp.
|
pure virtual |
clear the cache if any.
Implemented in CSGDataSourceContext.
|
pure virtual |
Get a seqgraphic data source instance of the specified type.
If a datasource is not sharable, it will just create one based on the input object. If a datasource is sharable, it will return a cached instance if there is a cached one. Otherwise, a new instance will get created, cached and returned. TODO, preferably, the context should be able to distinguish different objects in addition to the types.
Implemented in CSGDataSourceContext.
Referenced by CBinsTrackFactory::CreateTracks(), CHapmapTrackFactory::CreateTracks(), CLDBlockTrackFactory::CreateTracks(), CSnpTrackFactory::CreateTracks(), CAggregateFeatureTrackFactory::CreateTracks(), CAllOtherFeaturesTrackFactory::CreateTracks(), CComponentTrackFactory::CreateTracks(), CVarTrackFactory::CreateTracks(), CEpigenomicsTrackFactory::CreateTracks(), CFeatureTrackFactory::CreateTracks(), CGraphOverlayFactory::CreateTracks(), CGraphTrackFactory::CreateTracks(), CScaffoldTrackFactory::CreateTracks(), CSegmentMapTrackFactory::CreateTracks(), CSeqTableGraphTrackFactory::CreateTracks(), CSequenceTrackFactory::CreateTracks(), CSixFramesTransTrackFactory::CreateTracks(), CTraceGraphTrackFactory::CreateTracks(), CTrackContainerFactory::CreateTracks(), CAlignmentTrackFactory::CreateTracks(), CGeneModelFactory::CreateTracks(), CVcfTrackFactory::CreateTracks(), and CGeneModelFactory::x_CreateTracksWithFilters().