49 : m_Handle(handle),
m_Scope(scope)
149 "CRemoveTSE_EditCommand::Undo() is not implemented yet");
static CRef< CScope > m_Scope
virtual void Do(IScopeTransaction_Impl &tr)
CSeq_entry_EditHandle m_Handle
virtual ~CRemoveTSE_EditCommand()
void RemoveEntry(const CSeq_entry_EditHandle &entry)
CBioseq_set_EditHandle SelectSet(const CSeq_entry_EditHandle &entry, CBioseq_set &seqset)
void SelectNone(const CSeq_entry_EditHandle &entry)
CSeq_entry_EditHandle AttachEntry(const CBioseq_set_EditHandle &seqset, CSeq_entry &entry, int index=-1)
CBioseq_EditHandle SelectSeq(const CSeq_entry_EditHandle &entry, CBioseq &seq)
void RemoveTopLevelSeqEntry(const CTSE_Handle &entry)
virtual void Do(IScopeTransaction_Impl &tr)
virtual ~CSeq_entry_Remove_EditCommand()
CSeq_entry_EditHandle m_Handle
CBioseq_set_EditHandle m_ParentHandle
CBioseq_EditHandle m_BioseqHandle
CSeq_entry_EditHandle m_Handle
virtual ~CSeq_entry_SelectNone_EditCommand()
virtual void Do(IScopeTransaction_Impl &tr)
CBioseq_set_EditHandle m_BioseqSetHandle
virtual void Remove(const CSeq_entry_Handle &entry, const CSeq_annot_Handle &what, ECallMode)=0
@ eUndo
The method is called when a modification has just been undone.
@ eDo
The method is called when a modification has just been done.
virtual void RemoveTSE(const CTSE_Handle &handle, ECallMode)=0
virtual void Attach(const CBioObjectId &old_id, const CSeq_entry_Handle &entry, const CBioseq_Handle &what, ECallMode)=0
virtual void Detach(const CSeq_entry_Handle &entry, const CBioseq_Handle &what, ECallMode)=0
virtual void AddCommand(TCommand)=0
virtual void AddEditSaver(IEditSaver *)=0
IEditSaver * GetEditSaver(const Handle &handle)
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
CBioseq_set_EditHandle GetParentBioseq_set(void) const
Get parent bioseq-set edit handle.
const CBioObjectId & GetBioObjectId(void) const
Get unique object id.
bool IsRemoved(void) const
const CTSE_Handle & GetTSE_Handle(void) const
bool IsRemoved(void) const
Check if handle points to a removed bioseq.
CSeq_entry_EditHandle GetParentEntry(void) const
Get parent seq-entry edit handle.
int GetSeq_entry_Index(const CSeq_entry_Handle &handle) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
Defines NCBI C++ exception handling.