1 #ifndef OBJECTS_OBJMGR_IMPL___SEQ_ANNOT_EDIT_COMMNADS__HPP
2 #define OBJECTS_OBJMGR_IMPL___SEQ_ANNOT_EDIT_COMMNADS__HPP
89 template<
typename Handle>
116 template<
typename Handle>
122 typedef typename TResolver::TData
TData;
176 template<
typename Handle>
182 typedef typename TResolver::TData
TData;
204 m_Ret.x_RealRemove();
220 template<
typename Handle>
229 template<
typename Handle>
235 typedef typename TResolver::TData
TData;
void RemoveAnnot(const CSeq_annot_EditHandle &annot)
CSeq_annot_EditHandle AttachAnnot(const CSeq_entry_EditHandle &entry, CSeq_annot &annot)
virtual ~CSeq_annot_Add_EditCommand()
AnnotDataResolver< Handle > TResolver
CSeq_annot_Add_EditCommand(const CSeq_annot_EditHandle &handle, const TData &data)
virtual void Do(IScopeTransaction_Impl &tr)
CConstRef< TData > m_Data
CSeq_annot_EditHandle m_Handle
virtual ~CSeq_annot_Remove_EditCommand()
virtual void Do(IScopeTransaction_Impl &tr)
CConstRef< TData > m_Data
CSeq_annot_Remove_EditCommand(const Handle &handle)
AnnotDataResolver< Handle > TResolver
virtual void Do(IScopeTransaction_Impl &tr)
AnnotDataResolver< Handle > TResolver
virtual ~CSeq_annot_Replace_EditCommand()
CConstRef< TData > m_Data
CConstRef< TData > m_OldData
CSeq_annot_Replace_EditCommand(const Handle &handle, const TData &data)
namespace ncbi::objects::
Interface (functor) for object editing.
virtual void Remove(const CSeq_entry_Handle &entry, const CSeq_annot_Handle &what, ECallMode)=0
virtual void Replace(const CSeq_feat_Handle &handle, const CSeq_feat &old_value, 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 Add(const CSeq_annot_Handle &handle, const CSeq_feat &obj, ECallMode)=0
virtual void Attach(const CBioObjectId &old_id, const CSeq_entry_Handle &entry, const CBioseq_Handle &what, ECallMode)=0
virtual void AddCommand(TCommand)=0
virtual void AddEditSaver(IEditSaver *)=0
Include a standard set of the NCBI C++ Toolkit most basic headers.
IEditSaver * GetEditSaver(const Handle &handle)
CConstRef< CSeq_graph > GetSeq_graph(void) const
Get constant reference to the current seq-graph.
virtual CConstRef< CSeq_feat > GetSeq_feat(void) const
CSeq_feat_EditHandle x_RealAdd(const CSeq_feat &new_obj) const
CConstRef< CSeq_align > GetSeq_align(void) const
Get const reference to current seq-align.
#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.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
CRemove_EditCommand< CSeq_annot_EditHandle > CRemoveAnnot_EditCommand
static CConstRef< TData > GetData(const THandle &handle)
CSeq_align_Handle THandle
CSeq_feat_EditHandle THandle
static CConstRef< TData > GetData(const THandle &handle)
static CConstRef< TData > GetData(const THandle &handle)
CSeq_graph_Handle THandle
static TReturn GetRet(TCMD *cmd)
CSeq_annot_Add_EditCommand< Handle > TCMD
static void Undo(CScope_Impl &scope, const CSeq_entry_EditHandle &entry, const Handle &handle)
CSeq_annot_EditHandle Handle
static void UndoInDB(IEditSaver &saver, const CBioObjectId &, const CSeq_entry_EditHandle &entry, const Handle &handle)
static void DoInDB(IEditSaver &saver, const CSeq_entry_EditHandle &entry, const Handle &handle)
static void Do(CScope_Impl &scope, const CSeq_entry_EditHandle &, const Handle &handle)