NCBI C++ ToolKit
Classes | Macros | Functions
edits_db_saver.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistre.hpp>
#include <objmgr/edits_db_saver.hpp>
#include <objmgr/edits_db_engine.hpp>
#include <objmgr/blob_id.hpp>
#include <objmgr/bio_object_id.hpp>
#include <objmgr/bioseq_handle.hpp>
#include <objmgr/bioseq_set_handle.hpp>
#include <objmgr/seq_feat_handle.hpp>
#include <objmgr/seq_align_handle.hpp>
#include <objmgr/seq_graph_handle.hpp>
#include <objmgr/seq_annot_handle.hpp>
#include <objmgr/seq_entry_handle.hpp>
#include <objects/seq/seq_id_handle.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objects/seq/Seq_descr.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seq/Annot_descr.hpp>
#include <objects/seq/Annotdesc.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/seqedit/SeqEdit_Id.hpp>
#include <objects/seqedit/SeqEdit_Cmd.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AddId.hpp>
#include <objects/seqedit/SeqEdit_Cmd_RemoveId.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ResetIds.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ChangeSeqAttr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ResetSeqAttr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ChangeSetAttr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ResetSetAttr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AddDescr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_SetDescr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ResetDescr.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AddDesc.hpp>
#include <objects/seqedit/SeqEdit_Cmd_RemoveDesc.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AttachSeq.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AttachSet.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ResetSeqEntry.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AttachSeqEntry.hpp>
#include <objects/seqedit/SeqEdit_Cmd_RemoveSeqEntry.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AttachAnnot.hpp>
#include <objects/seqedit/SeqEdit_Cmd_RemoveAnnot.hpp>
#include <objects/seqedit/SeqEdit_Cmd_AddAnnot.hpp>
#include <objects/seqedit/SeqEdit_Cmd_ReplaceAnnot.hpp>
#include <algorithm>
#include <functional>
+ Include dependency graph for edits_db_saver.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  STypeChooser< CSeqEdit_Cmd::e_Add_descr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Set_descr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Reset_descr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Add_desc >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Remove_desc >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Add_id >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Remove_id >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Reset_ids >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Change_seqattr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Reset_seqattr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Change_setattr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Reset_setattr >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Attach_seq >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Attach_set >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Reset_seqentry >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Attach_seqentry >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Remove_seqentry >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Attach_annot >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Remove_annot >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Add_annot >
 
struct  STypeChooser< CSeqEdit_Cmd::e_Replace_annot >
 
struct  SCmdCreator< type >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Inst >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Repr >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Mol >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Length >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Topology >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Strand >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Fuzz >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Ext >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Hist >
 
struct  SSeqAttrChanger< CSeqEdit_Cmd_ChangeSeqAttr::TData::e_Seq_data >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Id >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Coll >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Level >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Class >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Release >
 
struct  SSetAttrChanger< CSeqEdit_Cmd_ChangeSetAttr::TData::e_Date >
 
struct  SAnnotCmdPreparer< type >
 
struct  AnnotObjTrait< CSeq_feat >
 
struct  AnnotObjTrait< CSeq_align >
 
struct  AnnotObjTrait< CSeq_graph >
 

Macros

#define DEFCHOOSER(type, name)
 
#define DEFINSTCH(type)
 
#define DEFINSTCH(type)
 

Functions

static CRef< CSeqEdit_Ids_Convert (const CBioObjectId &id)
 
template<typename THandle >
static void s_AddDescr (const THandle &handle, const CSeq_descr &descr, IEditsDBEngine &engine)
 
template<typename THandle >
static void s_SetDescr (const THandle &handle, const CSeq_descr &descr, IEditsDBEngine &engine)
 
template<typename THandle >
static void s_ResetDescr (const THandle &handle, IEditsDBEngine &engine)
 
template<typename THandle >
static void s_AddDesc (const THandle &handle, const CSeqdesc &desc, IEditsDBEngine &engine)
 
template<typename THandle >
static void s_RemoveDesc (const THandle &handle, const CSeqdesc &desc, IEditsDBEngine &engine)
 
static void s_ResetSeqAttr (const CBioseq_Handle &handle, CSeqEdit_Cmd_ResetSeqAttr::TWhat what, IEditsDBEngine &engine)
 
static CRef< CSeq_ids_ConvertId (const CSeq_id_Handle &handle)
 
static void s_ResetSetAttr (const CBioseq_set_Handle &handle, CSeqEdit_Cmd_ResetSetAttr::TWhat what, IEditsDBEngine &engine)
 
static void s_CollectSeqIds (const CSeq_entry &entry, IEditSaver::TIds &ids)
 
static void s_CollectSeqIds (const CBioseq_set &bset, IEditSaver::TIds &ids)
 
template<typename T >
static void s_SetSearchParam (CSeqEdit_Cmd_AddAnnot &cmd, const T &new_obj, const CSeq_annot_Handle &handle)
 
template<typename T >
static void s_AddAnnot (const CSeq_annot_Handle &handle, const T &value, IEditsDBEngine &engine)
 
template<typename T >
static void s_RemoveAnnot (const CSeq_entry_Handle &entry, const CSeq_annot_Handle &annot, const T &old_value, IEditsDBEngine &engine)
 

Macro Definition Documentation

◆ DEFCHOOSER

#define DEFCHOOSER (   type,
  name 
)
Value:
template<> \
typedef CSeqEdit_Cmd_##name TCommand; \
static inline TCommand& GetCommand(CSeqEdit_Cmd& cmd) \
{ return cmd.Set##type(); } \
}
static CS_COMMAND * cmd
Definition: ct_dynamic.c:26
static int type
Definition: getdata.c:31

Definition at line 134 of file edits_db_saver.cpp.

◆ DEFINSTCH [1/2]

#define DEFINSTCH (   type)
Value:
template<> \
static inline void CreateCmd(const CBioseq_Handle& handle, \
const TParam& value, \
IEditsDBEngine& engine) \
{ \
CRef<CSeqEdit_Cmd> cmd; \
CSeqEdit_Cmd_ChangeSeqAttr& c = \
c.SetData().Set##type(const_cast<TParam&>(value)); \
engine.SaveCommand(*cmd); \
} \
}
CBioseq_Handle –.
char value[7]
Definition: config.c:431
#define T(s)
Definition: common.h:230
static TCommand & CreateCmd(const THandle &handle, CRef< CSeqEdit_Cmd > &holder)
Definition: type.c:6

Definition at line 552 of file edits_db_saver.cpp.

◆ DEFINSTCH [2/2]

#define DEFINSTCH (   type)
Value:
template<> \
static inline void CreateCmd(const CBioseq_set_Handle& handle, \
const TParam& value, \
IEditsDBEngine& engine) \
{ \
CRef<CSeqEdit_Cmd> cmd; \
CSeqEdit_Cmd_ChangeSetAttr& c = \
c.SetData().Set##type(const_cast<TParam&>(value)); \
engine.SaveCommand(*cmd); \
} \
}
CBioseq_set_Handle –.

Definition at line 552 of file edits_db_saver.cpp.

Function Documentation

◆ s_AddAnnot()

template<typename T >
static void s_AddAnnot ( const CSeq_annot_Handle handle,
const T value,
IEditsDBEngine engine 
)
inlinestatic

◆ s_AddDesc()

template<typename THandle >
static void s_AddDesc ( const THandle &  handle,
const CSeqdesc desc,
IEditsDBEngine engine 
)
inlinestatic

◆ s_AddDescr()

template<typename THandle >
static void s_AddDescr ( const THandle &  handle,
const CSeq_descr descr,
IEditsDBEngine engine 
)
inlinestatic

◆ s_CollectSeqIds() [1/2]

static void s_CollectSeqIds ( const CBioseq_set bset,
IEditSaver::TIds ids 
)
static

◆ s_CollectSeqIds() [2/2]

static void s_CollectSeqIds ( const CSeq_entry entry,
IEditSaver::TIds ids 
)
static

◆ s_Convert()

static CRef<CSeqEdit_Id> s_Convert ( const CBioObjectId id)
static

◆ s_ConvertId()

static CRef<CSeq_id> s_ConvertId ( const CSeq_id_Handle handle)
inlinestatic

Definition at line 520 of file edits_db_saver.cpp.

References CSeq_id_Handle::GetSeqId().

Referenced by CEditsSaver::ResetIds().

◆ s_RemoveAnnot()

template<typename T >
static void s_RemoveAnnot ( const CSeq_entry_Handle entry,
const CSeq_annot_Handle annot,
const T old_value,
IEditsDBEngine engine 
)
inlinestatic

◆ s_RemoveDesc()

template<typename THandle >
static void s_RemoveDesc ( const THandle &  handle,
const CSeqdesc desc,
IEditsDBEngine engine 
)
inlinestatic

◆ s_ResetDescr()

template<typename THandle >
static void s_ResetDescr ( const THandle &  handle,
IEditsDBEngine engine 
)
inlinestatic

◆ s_ResetSeqAttr()

static void s_ResetSeqAttr ( const CBioseq_Handle handle,
CSeqEdit_Cmd_ResetSeqAttr::TWhat  what,
IEditsDBEngine engine 
)
inlinestatic

◆ s_ResetSetAttr()

static void s_ResetSetAttr ( const CBioseq_set_Handle handle,
CSeqEdit_Cmd_ResetSetAttr::TWhat  what,
IEditsDBEngine engine 
)
inlinestatic

◆ s_SetDescr()

template<typename THandle >
static void s_SetDescr ( const THandle &  handle,
const CSeq_descr descr,
IEditsDBEngine engine 
)
inlinestatic

◆ s_SetSearchParam()

template<typename T >
static void s_SetSearchParam ( CSeqEdit_Cmd_AddAnnot cmd,
const T new_obj,
const CSeq_annot_Handle handle 
)
inlinestatic
Modified on Thu Feb 29 12:24:28 2024 by modify_doxy.py rev. 669887