,
61 "https://www.ncbi.nlm.nih.gov/tools/gbench/",
146 const CObject* ptr = it2->object.GetPointer();
147 if(
dynamic_cast<const CSeq_entry*
>(ptr) ||
150 dynamic_cast<const CSeq_id*
>(ptr))
232const CSeq_entry* seqEntry = dynamic_cast<const CSeq_entry*>(ptr);
235CSeq_entry& obj_ref = const_cast<CSeq_entry&>(*seqEntry);
236CConstRef<CCleanupChange> changes =
237(m_Params.GetCleanupMode() == 0) ?
238cleanup.BasicCleanup(obj_ref) : cleanup.ExtendedCleanup(obj_ref);
239s_ListChanges(changes, changelist);
241catch (CException& e) {
242error_occurred = true;
243errmsg += "error in basic cleanup: ";
244errmsg += e.GetMsg();
251const CSeq_annot* seqAnnot = dynamic_cast<const CSeq_annot*>(ptr);
254CSeq_annot& obj_ref = const_cast<CSeq_annot&>(*seqAnnot);
255CConstRef<CCleanupChange> changes =
256(m_Params.GetCleanupMode() == 0) ?
257cleanup.BasicCleanup(obj_ref) : cleanup.ExtendedCleanup(obj_ref);
258s_ListChanges(changes, changelist);
260catch (CException& e) {
261error_occurred = true;
262errmsg += "error in basic cleanup: ";
263errmsg += e.GetMsg();
270const CSeq_submit* seqSubmit = dynamic_cast<const CSeq_submit*>(ptr);
273CSeq_submit& obj_ref = const_cast<CSeq_submit&>(*seqSubmit);
274CConstRef<CCleanupChange> changes =
275(m_Params.GetCleanupMode() == 0) ?
276cleanup.BasicCleanup(obj_ref) : cleanup.ExtendedCleanup(obj_ref);
277s_ListChanges(changes, changelist);
279catch (CException& e) {
280error_occurred = true;
281errmsg += "error in basic cleanup: ";
282errmsg += e.GetMsg();
289const CSeq_id* seqId = dynamic_cast<const CSeq_id*>(ptr);
292CSeq_id& obj_ref = const_cast<CSeq_id&>(*seqId);
293CBioseq_Handle bh = scope->GetBioseqHandle(obj_ref);
294CConstRef<CCleanupChange> changes;
296if (m_Params.GetCleanupMode() == 0)
297changes = cleanup.BasicCleanup(bh);
299changes = cleanup.ExtendedCleanup(const_cast <CSeq_entry&>
300(*(bh.GetSeq_entry_Handle().GetCompleteSeq_entry())));
302s_ListChanges(changes, changelist);
304catch (CException& e) {
305error_occurred = true;
306errmsg += "error in basic cleanup: ";
307errmsg += e.GetMsg();
User-defined methods of the data storage class.
CDataLoadingAppJob - a base class for Jobs loading data into projects.
CDataLoadingAppTask - a task that executes CDataLoadingAppJob.
virtual void x_CreateProjectItems()
override this function in derived classes and populate m_Items.
CMergeItemsJob(const CMergeParams ¶ms)
void SetData(const CMergeParams &data)
virtual void SetRegistryPath(const string ®_path)
CAlgoToolManagerParamsPanel.
virtual void LoadSettings()
CMergeParams & GetData()
Data access.
void SetObjects(map< string, TConstScopedObjects > &masters, map< string, TConstScopedObjects > &kids)
bool Create(wxWindow *parent, wxWindowID id=ID_CMERGEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CProjectService - a service providing API for operations with Workspaces and Projects.
CProjectSelectOptions - describes how new Project Items shall be added to a workspace.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual IRegSettings * x_GetParamsAsRegSetting()
return a pointer to Parameters object as IRegSettings interface
virtual void CleanUI()
override this function in a derived class and clean extra members
virtual void InitUI()
override this function in a derived class and initialize extra members
virtual void x_SelectCompatibleInputObjects()
map< string, TConstScopedObjects > m_Objects
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual bool x_ValidateParams()
validates user input in Parameters panel, report errors if any
CMergeTool()
CCleanupTool.
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
virtual CAlgoToolManagerParamsPanel * x_GetParamsPanel()
returns a pointer to the parameters panel, override in derived classes
virtual CDataLoadingAppJob * x_CreateLoadingJob()
factory method for creating the job that executes the tool algorithm override in derived classes
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual bool x_CreateParamsPanelIfNeeded()
returns / creates Parameters panel, override in derived classes see cpp file for example
string m_Descr
mutex to sync our internals
vector< SConstScopedObject > TConstScopedObjects
TObjectType * Release(void)
Release a reference to the object and return a pointer to the object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
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