,
59 "Basic record cleanup - performs some trivial " 60 "data rearrangements and clarifications",
61 "https://www.ncbi.nlm.nih.gov/tools/gbench/",
69 return "cleanup_tool";
75 return "Cleanup Tool";
149 const CObject* ptr = it2->object.GetPointer();
150 if(
dynamic_cast<const CSeq_entry*
>(ptr) ||
153 dynamic_cast<const CSeq_id*
>(ptr))
205vector<string_view> changes_str = changes->GetDescriptions();
206 for(
const auto& it : changes_str) {
210changelist +=
string(it);
217 stringchangelist =
"";
224 const CObject* ptr = it->object.GetPointer();
233 cleanup.BasicCleanup(obj_ref) :
cleanup.ExtendedCleanup(obj_ref);
237errmsg +=
"error in basic cleanup: ";
251 cleanup.BasicCleanup(obj_ref) :
cleanup.ExtendedCleanup(obj_ref);
255errmsg +=
"error in basic cleanup: ";
269 cleanup.BasicCleanup(obj_ref) :
cleanup.ExtendedCleanup(obj_ref);
273errmsg +=
"error in basic cleanup: ";
289changes =
cleanup.BasicCleanup(bh);
297errmsg +=
"error in basic cleanup: ";
User-defined methods of the data storage class.
virtual void x_CreateProjectItems()
override this function in derived classes and populate m_Items.
CCleanupJob(const CCleanupParams ¶ms)
CDataLoadingAppJob - a base class for Jobs loading data into projects.
CDataLoadingAppTask - a task that executes CDataLoadingAppJob.
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.
static void cleanup(void)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
const string & GetMsg(void) const
Get message string.
void Info(CExceptionArgs_Base &args)
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual CAlgoToolManagerParamsPanel * x_GetParamsPanel()
returns a pointer to the parameters panel, override in derived classes
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void LoadSettings()
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual bool x_CreateParamsPanelIfNeeded()
returns / creates Parameters panel, override in derived classes see cpp file for example
virtual CDataLoadingAppJob * x_CreateLoadingJob()
factory method for creating the job that executes the tool algorithm override in derived classes
CCleanupTool()
CCleanupTool.
int GetCleanupMode() const
virtual IRegSettings * x_GetParamsAsRegSetting()
return a pointer to Parameters object as IRegSettings interface
const TConstScopedObjects & GetObjects() const
void SetData(const CCleanupParams &data)
virtual void InitUI()
override this function in a derived class and initialize extra members
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
TConstScopedObjects m_Objects
virtual void CleanUI()
override this function in a derived class and clean extra members
virtual bool x_ValidateParams()
validates user input in Parameters panel, report errors if any
CCleanupParams & GetData()
Data access.
bool Create(wxWindow *parent, wxWindowID id=ID_CCLEANUPPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void SetObjects(TConstScopedObjects *objects)
virtual void x_SelectCompatibleInputObjects()
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
string m_Descr
mutex to sync our internals
vector< SConstScopedObject > TConstScopedObjects
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
CConstRef< CSeq_entry > GetCompleteSeq_entry(void) const
Complete and get const reference to the seq-entry.
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.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
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