1 #ifndef OBJECTS_OBJMGR_IMPL___SEQ_ENTRY_EDIT_COMMNADS__HPP
2 #define OBJECTS_OBJMGR_IMPL___SEQ_ENTRY_EDIT_COMMNADS__HPP
55 template<
typename Handle,
typename Data>
58 template<
typename Data>
69 template<
typename Data>
80 template<
typename Handle,
typename Data>
128 template<
typename Handle,
typename Data>
164 : m_Handle(handle),
m_Scope(scope), m_Index(-1) {}
187 : m_Handle(handle),
m_Scope(scope) {}
212 else if (handle.
IsSet())
222 else if (handle.
IsSet())
233 else if (handle.
IsSet())
249 else if (handle.
IsSet())
259 else if (handle.
IsSet())
268 template<
typename Annot>
319 template<
typename Annot>
static CRef< CScope > m_Scope
CSeq_annot_EditHandle m_AnnotHandle
CAttachAnnot_EditCommand(const CSeq_entry_EditHandle &handle, TRef annot, CScope_Impl &scope)
virtual void Do(IScopeTransaction_Impl &tr)
virtual ~CAttachAnnot_EditCommand()
TTrait::TStorage TStorage
CSeq_annot_EditHandle GetRet() const
MemetoTrait< Annot, IsCRef< Annot >::value > TTrait
CSeq_entry_EditHandle m_Handle
CBioseq_set_EditHandle –.
CSeq_entry_EditHandle m_Handle
CRemoveTSE_EditCommand(const CSeq_entry_EditHandle &handle, CScope_Impl &scope)
void RemoveAnnot(const CSeq_annot_EditHandle &annot)
CBioseq_set_EditHandle SelectSet(const CSeq_entry_EditHandle &entry, CBioseq_set &seqset)
void SelectNone(const CSeq_entry_EditHandle &entry)
CSeq_annot_EditHandle AttachAnnot(const CSeq_entry_EditHandle &entry, CSeq_annot &annot)
CBioseq_EditHandle SelectSeq(const CSeq_entry_EditHandle &entry, CBioseq &seq)
@Seq_descr.hpp User-defined methods of the data storage class.
CSeq_entry_EditHandle m_Handle
CBioseq_set_EditHandle m_ParentHandle
CSeq_entry_Remove_EditCommand(const CSeq_entry_EditHandle &handle, CScope_Impl &scope)
CBioseq_EditHandle m_BioseqHandle
CSeq_entry_EditHandle m_Handle
CBioseq_set_EditHandle m_BioseqSetHandle
CSeq_entry_Select_EditCommand(const CSeq_entry_EditHandle &handle, TRef data, CScope_Impl &scope)
MemetoTrait< Data, IsCRef< Data >::value > TTrait
TTrait::TStorage TStorage
virtual void Do(IScopeTransaction_Impl &tr)
CSeq_entry_EditHandle m_Handle
virtual ~CSeq_entry_Select_EditCommand()
SeqEntrySelectAction< Handle, Data > Action
Interface (functor) for object editing.
virtual void Do(IScopeTransaction_Impl &)=0
virtual void Remove(const CSeq_entry_Handle &entry, const CSeq_annot_Handle &what, ECallMode)=0
ECallMode
This flag can be used for optimization purpose.
@ 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 SetDescr(const CBioseq_Handle &, const CSeq_descr &, ECallMode)=0
virtual void AddDesc(const CBioseq_Handle &, const CSeqdesc &, ECallMode)=0
virtual void RemoveDesc(const CBioseq_Handle &, const CSeqdesc &, ECallMode)=0
virtual void AddDescr(const CBioseq_Handle &, const CSeq_descr &, ECallMode)=0
Description operations.
virtual void Attach(const CBioObjectId &old_id, const CSeq_entry_Handle &entry, const CBioseq_Handle &what, ECallMode)=0
virtual void ResetDescr(const CBioseq_Handle &, 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
Include a standard set of the NCBI C++ Toolkit most basic headers.
IEditSaver * GetEditSaver(const Handle &handle)
const CBioObjectId & GetBioObjectId(void) const
Get unique object id.
#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.
#define NCBI_XOBJMGR_EXPORT
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
CAttachAnnot_EditCommand< Annot > CMD
CSeq_annot_EditHandle TReturn
static TReturn GetRet(CMD *cmd)
static TReturn GetRet(CMD *cmd)
CSeq_entry_Select_EditCommand< Handle, Data > CMD
static void Add(IEditSaver &saver, const Handle &handle, const CSeq_descr &data, IEditSaver::ECallMode mode)
static void Reset(IEditSaver &saver, const Handle &handle, IEditSaver::ECallMode mode)
CSeq_entry_EditHandle Handle
static void Set(IEditSaver &saver, const Handle &handle, const CSeq_descr &data, IEditSaver::ECallMode mode)
static void Add(IEditSaver &saver, const Handle &handle, const CSeqdesc &desc, IEditSaver::ECallMode mode)
CSeq_entry_EditHandle Handle
static void Remove(IEditSaver &saver, const Handle &handle, const CSeqdesc &desc, IEditSaver::ECallMode mode)
static TRef Restore(TStorage t)
MemetoTrait< Data, IsCRef< Data >::value > TTrait
TTrait::TStorage TStorage
static CBioseq_EditHandle Do(CScope_Impl &scope, const CSeq_entry_EditHandle &handle, TStorage data)
TTrait::TStorage TStorage
MemetoTrait< Data, IsCRef< Data >::value > TTrait
static CBioseq_set_EditHandle Do(CScope_Impl &scope, const CSeq_entry_EditHandle &handle, TStorage data)