NCBI C++ ToolKit
Classes | Functions | Variables
project_converters.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbiobj.hpp>
#include <objects/gbproj/ProjectItem.hpp>
#include <objects/gbproj/ProjectFolder.hpp>
#include <gui/objects/GBProject.hpp>
#include <objects/seqalign/Seq_align.hpp>
#include <objects/seqalign/Seq_align_set.hpp>
#include <objects/submit/Seq_submit.hpp>
#include <gui/objutils/obj_convert.hpp>
#include <serial/iterator.hpp>
+ Include dependency graph for project_converters.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SConverterEntry
 

Functions

 USING_SCOPE (objects)
 
static CRef< CSeq_annots_Align2Annot (const CSeq_align &align)
 
static CRef< CSeq_annots_AlignSet2Annot (const CSeq_align_set &align_set)
 
static void Convert_Seq_annot_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CRelation::TFlags flags, ICanceled *)
 
static void Convert_Seq_align_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Seq-align –> ProjectItem. More...
 
static void Convert_Seq_align_set_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &related, CBasicRelation::TFlags flags, ICanceled *)
 Seq-align-set –> ProjectItem. More...
 
static void Convert_Seq_annot_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Seq-annot –> ProjectItem. More...
 
static void Convert_Seq_entry_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Seq-entry –> ProjectItem. More...
 
static void Convert_Seq_id_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Seq-id –> ProjectItem. More...
 
static void Convert_SeqSubmit_ProjectItem (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Seq-submit –> ProjectItem. More...
 
static void Convert_GBProject_Object (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 Container objects: CDocument CGBProjectHandle CProjectItem. More...
 
static void Convert_ProjectItem_Object (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 
static void Convert_Container_Object (CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
 
void init_project_converters ()
 

Variables

static SConverterEntry m_ConverterEntries []
 

Function Documentation

◆ Convert_Container_Object()

static void Convert_Container_Object ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

◆ Convert_GBProject_Object()

static void Convert_GBProject_Object ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Container objects: CDocument CGBProjectHandle CProjectItem.

Definition at line 176 of file project_converters.cpp.

References data, and CGBProjectHandle::GetData().

Referenced by init_project_converters().

◆ Convert_ProjectItem_Object()

static void Convert_ProjectItem_Object ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

◆ Convert_Seq_align_ProjectItem()

static void Convert_Seq_align_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-align –> ProjectItem.

Definition at line 77 of file project_converters.cpp.

References Convert_Seq_annot_ProjectItem(), flags, NULL, and s_Align2Annot().

◆ Convert_Seq_align_set_ProjectItem()

static void Convert_Seq_align_set_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects related,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-align-set –> ProjectItem.

Definition at line 91 of file project_converters.cpp.

References Convert_Seq_annot_ProjectItem(), flags, NULL, and s_AlignSet2Annot().

◆ Convert_Seq_annot_ProjectItem() [1/2]

static void Convert_Seq_annot_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-annot –> ProjectItem.

Definition at line 107 of file project_converters.cpp.

References CProjectItem_Base::SetItem().

◆ Convert_Seq_annot_ProjectItem() [2/2]

static void Convert_Seq_annot_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CRelation::TFlags  flags,
ICanceled  
)
static

◆ Convert_Seq_entry_ProjectItem()

static void Convert_Seq_entry_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-entry –> ProjectItem.

Definition at line 123 of file project_converters.cpp.

References CProjectItem_Base::SetItem().

◆ Convert_Seq_id_ProjectItem()

static void Convert_Seq_id_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-id –> ProjectItem.

Definition at line 140 of file project_converters.cpp.

References CProjectItem_Base::SetItem().

◆ Convert_SeqSubmit_ProjectItem()

static void Convert_SeqSubmit_ProjectItem ( CScope scope,
const CObject obj,
CBasicRelation::TObjects objs,
CBasicRelation::TFlags  flags,
ICanceled  
)
static

Seq-submit –> ProjectItem.

Definition at line 156 of file project_converters.cpp.

References CProjectItem_Base::SetItem().

◆ init_project_converters()

void init_project_converters ( )

◆ s_Align2Annot()

static CRef<CSeq_annot> s_Align2Annot ( const CSeq_align align)
static

Definition at line 50 of file project_converters.cpp.

References CSeq_annot_Base::SetData().

Referenced by Convert_Seq_align_ProjectItem().

◆ s_AlignSet2Annot()

static CRef<CSeq_annot> s_AlignSet2Annot ( const CSeq_align_set align_set)
static

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ m_ConverterEntries

SConverterEntry m_ConverterEntries[]
static
Initial value:
= {
{ "Seq-align --> ProjectItem", Convert_Seq_align_ProjectItem,
CSeq_align::GetTypeInfo(), CProjectItem::GetTypeInfo() },
{ "Seq-align-set --> ProjectItem", Convert_Seq_align_set_ProjectItem,
CSeq_align_set::GetTypeInfo(), CProjectItem::GetTypeInfo() },
{ "Seq-annot --> ProjectItem", Convert_Seq_annot_ProjectItem,
CSeq_annot::GetTypeInfo(), CProjectItem::GetTypeInfo() },
{ "Seq-entry --> ProjectItem", Convert_Seq_entry_ProjectItem,
CSeq_entry::GetTypeInfo(), CProjectItem::GetTypeInfo() },
{ "Seq-id --> ProjectItem", Convert_Seq_id_ProjectItem,
CSeq_id::GetTypeInfo(), CProjectItem::GetTypeInfo() },
{ "Seq-submit --> ProjectItem", Convert_SeqSubmit_ProjectItem,
CSeq_submit::GetTypeInfo(), CProjectItem::GetTypeInfo() }
}
static void Convert_Seq_align_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
Seq-align –> ProjectItem.
static void Convert_SeqSubmit_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
Seq-submit –> ProjectItem.
static void Convert_Seq_align_set_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &related, CBasicRelation::TFlags flags, ICanceled *)
Seq-align-set –> ProjectItem.
static void Convert_Seq_annot_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CRelation::TFlags flags, ICanceled *)
static void Convert_Seq_entry_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
Seq-entry –> ProjectItem.
static void Convert_Seq_id_ProjectItem(CScope &scope, const CObject &obj, CBasicRelation::TObjects &objs, CBasicRelation::TFlags flags, ICanceled *)
Seq-id –> ProjectItem.

Definition at line 240 of file project_converters.cpp.

Referenced by init_project_converters().

Modified on Sun Apr 21 03:42:34 2024 by modify_doxy.py rev. 669887