NCBI C++ ToolKit
submit_macros.hpp File Reference

Utility macros and typedefs for exploring NCBI objects from submit.asn. More...

#include <objects/misc/sequence_util_macros.hpp>
#include <objects/submit/submit__.hpp>
+ Include dependency graph for submit_macros.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

#define NCBI_SEQSUBMIT(Type)   CSeq_submit::TData::e_##Type
 @NAME Convenience macros for NCBI objects More...
 
#define SEQSUBMIT_CHOICE_Test(Var)
 CSeq_submit macros. More...
 
#define SEQSUBMIT_CHOICE_Chs(Var)   (Var).GetData().Which()
 
#define SEQSUBMIT_CHOICE_IS(Var, Chs)   CHOICE_IS (SEQSUBMIT_CHOICE, Var, Chs)
 SEQSUBMIT_CHOICE_IS. More...
 
#define SEQSUBMIT_IS_ENTRYS(Var)   SEQSUBMIT_CHOICE_IS (Var, NCBI_SEQSUBMIT(Entrys))
 SEQSUBMIT_IS_ENTRYS. More...
 
#define SEQSUBMIT_IS_ANNOTS(Var)   SEQSUBMIT_CHOICE_IS (Var, NCBI_SEQSUBMIT(Annots))
 SEQSUBMIT_IS_ANNOTS. More...
 
#define SWITCH_ON_SEQSUBMIT_CHOICE(Var)   SWITCH_ON (SEQSUBMIT_CHOICE, Var)
 SWITCH_ON_SEQSUBMIT_CHOICE. More...
 
#define SEQENTRY_ON_SEQSUBMIT_Type   CSeq_submit::TData::TEntrys
 SEQENTRY_ON_SEQSUBMIT macros. More...
 
#define SEQENTRY_ON_SEQSUBMIT_Test(Var)   ((Var).IsSetData() && (Var).GetData().IsEntrys())
 
#define SEQENTRY_ON_SEQSUBMIT_Get(Var)   (Var).GetData().GetEntrys()
 
#define SEQENTRY_ON_SEQSUBMIT_Set(Var)   (Var).SetData().SetEntrys()
 
#define FOR_EACH_SEQENTRY_ON_SEQSUBMIT(Itr, Var)   FOR_EACH (SEQENTRY_ON_SEQSUBMIT, Itr, Var)
 FOR_EACH_SEQENTRY_ON_SEQSUBMIT EDIT_EACH_SEQENTRY_ON_SEQSUBMIT. More...
 
#define EDIT_EACH_SEQENTRY_ON_SEQSUBMIT(Itr, Var)   EDIT_EACH (SEQENTRY_ON_SEQSUBMIT, Itr, Var)
 
#define ADD_SEQENTRY_TO_SEQSUBMIT(Var, Ref)   ADD_ITEM (SEQENTRY_ON_SEQSUBMIT, Var, Ref)
 ADD_SEQENTRY_TO_SEQSUBMIT. More...
 
#define ERASE_SEQENTRY_ON_SEQSUBMIT(Itr, Var)   LIST_ERASE_ITEM (SEQENTRY_ON_SEQSUBMIT, Itr, Var)
 ERASE_SEQENTRY_ON_SEQSUBMIT. More...
 
#define SEQANNOT_ON_SEQSUBMIT_Type   CSeq_submit::TData::TAnnots
 SEQANNOT_ON_SEQSUBMIT macros. More...
 
#define SEQANNOT_ON_SEQSUBMIT_Test(Var)   ((Var).IsSetData() && (Var).GetData().IsAnnots())
 
#define SEQANNOT_ON_SEQSUBMIT_Get(Var)   (Var).GetData().GetAnnots()
 
#define SEQANNOT_ON_SEQSUBMIT_Set(Var)   (Var).SetData().SetAnnots()
 
#define SEQSUBMIT_HAS_SEQANNOT(Var)   ITEM_HAS (SEQANNOT_ON_SEQSUBMIT, Var)
 SEQSUBMIT_HAS_SEQANNOT. More...
 
#define FOR_EACH_SEQANNOT_ON_SEQSUBMIT(Itr, Var)   FOR_EACH (SEQANNOT_ON_SEQSUBMIT, Itr, Var)
 FOR_EACH_SEQANNOT_ON_SEQSUBMIT EDIT_EACH_SEQANNOT_ON_SEQSUBMIT. More...
 
#define EDIT_EACH_SEQANNOT_ON_SEQSUBMIT(Itr, Var)   EDIT_EACH (SEQANNOT_ON_SEQSUBMIT, Itr, Var)
 
#define ADD_SEQANNOT_TO_SEQSUBMIT(Var, Ref)   ADD_ITEM (SEQANNOT_ON_SEQSUBMIT, Var, Ref)
 ADD_SEQANNOT_TO_SEQSUBMIT. More...
 
#define ERASE_SEQANNOT_ON_SEQSUBMIT(Itr, Var)   LIST_ERASE_ITEM (SEQANNOT_ON_SEQSUBMIT, Itr, Var)
 ERASE_SEQANNOT_ON_SEQSUBMIT. More...
 
typedef CSeq_submit::TData::E_Choice TSEQSUBMIT_CHOICE
 

Detailed Description

Utility macros and typedefs for exploring NCBI objects from submit.asn.

Definition in file submit_macros.hpp.

Macro Definition Documentation

◆ ADD_SEQANNOT_TO_SEQSUBMIT

#define ADD_SEQANNOT_TO_SEQSUBMIT (   Var,
  Ref 
)    ADD_ITEM (SEQANNOT_ON_SEQSUBMIT, Var, Ref)

ADD_SEQANNOT_TO_SEQSUBMIT.

Definition at line 156 of file submit_macros.hpp.

◆ ADD_SEQENTRY_TO_SEQSUBMIT

#define ADD_SEQENTRY_TO_SEQSUBMIT (   Var,
  Ref 
)    ADD_ITEM (SEQENTRY_ON_SEQSUBMIT, Var, Ref)

ADD_SEQENTRY_TO_SEQSUBMIT.

Definition at line 123 of file submit_macros.hpp.

◆ EDIT_EACH_SEQANNOT_ON_SEQSUBMIT

#define EDIT_EACH_SEQANNOT_ON_SEQSUBMIT (   Itr,
  Var 
)    EDIT_EACH (SEQANNOT_ON_SEQSUBMIT, Itr, Var)

Definition at line 151 of file submit_macros.hpp.

◆ EDIT_EACH_SEQENTRY_ON_SEQSUBMIT

#define EDIT_EACH_SEQENTRY_ON_SEQSUBMIT (   Itr,
  Var 
)    EDIT_EACH (SEQENTRY_ON_SEQSUBMIT, Itr, Var)

Definition at line 118 of file submit_macros.hpp.

◆ ERASE_SEQANNOT_ON_SEQSUBMIT

#define ERASE_SEQANNOT_ON_SEQSUBMIT (   Itr,
  Var 
)    LIST_ERASE_ITEM (SEQANNOT_ON_SEQSUBMIT, Itr, Var)

ERASE_SEQANNOT_ON_SEQSUBMIT.

Definition at line 161 of file submit_macros.hpp.

◆ ERASE_SEQENTRY_ON_SEQSUBMIT

#define ERASE_SEQENTRY_ON_SEQSUBMIT (   Itr,
  Var 
)    LIST_ERASE_ITEM (SEQENTRY_ON_SEQSUBMIT, Itr, Var)

ERASE_SEQENTRY_ON_SEQSUBMIT.

Definition at line 128 of file submit_macros.hpp.

◆ FOR_EACH_SEQANNOT_ON_SEQSUBMIT

#define FOR_EACH_SEQANNOT_ON_SEQSUBMIT (   Itr,
  Var 
)    FOR_EACH (SEQANNOT_ON_SEQSUBMIT, Itr, Var)

FOR_EACH_SEQANNOT_ON_SEQSUBMIT EDIT_EACH_SEQANNOT_ON_SEQSUBMIT.

Definition at line 148 of file submit_macros.hpp.

◆ FOR_EACH_SEQENTRY_ON_SEQSUBMIT

#define FOR_EACH_SEQENTRY_ON_SEQSUBMIT (   Itr,
  Var 
)    FOR_EACH (SEQENTRY_ON_SEQSUBMIT, Itr, Var)

FOR_EACH_SEQENTRY_ON_SEQSUBMIT EDIT_EACH_SEQENTRY_ON_SEQSUBMIT.

Definition at line 115 of file submit_macros.hpp.

◆ NCBI_SEQSUBMIT

#define NCBI_SEQSUBMIT (   Type)    CSeq_submit::TData::e_##Type

@NAME Convenience macros for NCBI objects

Macros and typedefs for object subtypes CSeq_submit definitions

Definition at line 55 of file submit_macros.hpp.

◆ SEQANNOT_ON_SEQSUBMIT_Get

#define SEQANNOT_ON_SEQSUBMIT_Get (   Var)    (Var).GetData().GetAnnots()

Definition at line 136 of file submit_macros.hpp.

◆ SEQANNOT_ON_SEQSUBMIT_Set

#define SEQANNOT_ON_SEQSUBMIT_Set (   Var)    (Var).SetData().SetAnnots()

Definition at line 137 of file submit_macros.hpp.

◆ SEQANNOT_ON_SEQSUBMIT_Test

#define SEQANNOT_ON_SEQSUBMIT_Test (   Var)    ((Var).IsSetData() && (Var).GetData().IsAnnots())

Definition at line 135 of file submit_macros.hpp.

◆ SEQANNOT_ON_SEQSUBMIT_Type

#define SEQANNOT_ON_SEQSUBMIT_Type   CSeq_submit::TData::TAnnots

SEQANNOT_ON_SEQSUBMIT macros.

Definition at line 134 of file submit_macros.hpp.

◆ SEQENTRY_ON_SEQSUBMIT_Get

#define SEQENTRY_ON_SEQSUBMIT_Get (   Var)    (Var).GetData().GetEntrys()

Definition at line 108 of file submit_macros.hpp.

◆ SEQENTRY_ON_SEQSUBMIT_Set

#define SEQENTRY_ON_SEQSUBMIT_Set (   Var)    (Var).SetData().SetEntrys()

Definition at line 109 of file submit_macros.hpp.

◆ SEQENTRY_ON_SEQSUBMIT_Test

#define SEQENTRY_ON_SEQSUBMIT_Test (   Var)    ((Var).IsSetData() && (Var).GetData().IsEntrys())

Definition at line 107 of file submit_macros.hpp.

◆ SEQENTRY_ON_SEQSUBMIT_Type

#define SEQENTRY_ON_SEQSUBMIT_Type   CSeq_submit::TData::TEntrys

SEQENTRY_ON_SEQSUBMIT macros.

Definition at line 106 of file submit_macros.hpp.

◆ SEQSUBMIT_CHOICE_Chs

#define SEQSUBMIT_CHOICE_Chs (   Var)    (Var).GetData().Which()

Definition at line 82 of file submit_macros.hpp.

◆ SEQSUBMIT_CHOICE_IS

#define SEQSUBMIT_CHOICE_IS (   Var,
  Chs 
)    CHOICE_IS (SEQSUBMIT_CHOICE, Var, Chs)

SEQSUBMIT_CHOICE_IS.

Definition at line 86 of file submit_macros.hpp.

◆ SEQSUBMIT_CHOICE_Test

#define SEQSUBMIT_CHOICE_Test (   Var)
Value:
((Var).IsSetData() && \
(Var).GetData().Which() != CSeq_submit::TData::e_not_set)
@ e_not_set
No variant selected.

CSeq_submit macros.

SEQSUBMIT_CHOICE macros

Definition at line 80 of file submit_macros.hpp.

◆ SEQSUBMIT_HAS_SEQANNOT

#define SEQSUBMIT_HAS_SEQANNOT (   Var)    ITEM_HAS (SEQANNOT_ON_SEQSUBMIT, Var)

SEQSUBMIT_HAS_SEQANNOT.

Definition at line 141 of file submit_macros.hpp.

◆ SEQSUBMIT_IS_ANNOTS

#define SEQSUBMIT_IS_ANNOTS (   Var)    SEQSUBMIT_CHOICE_IS (Var, NCBI_SEQSUBMIT(Annots))

SEQSUBMIT_IS_ANNOTS.

Definition at line 96 of file submit_macros.hpp.

◆ SEQSUBMIT_IS_ENTRYS

#define SEQSUBMIT_IS_ENTRYS (   Var)    SEQSUBMIT_CHOICE_IS (Var, NCBI_SEQSUBMIT(Entrys))

SEQSUBMIT_IS_ENTRYS.

Definition at line 91 of file submit_macros.hpp.

◆ SWITCH_ON_SEQSUBMIT_CHOICE

#define SWITCH_ON_SEQSUBMIT_CHOICE (   Var)    SWITCH_ON (SEQSUBMIT_CHOICE, Var)

SWITCH_ON_SEQSUBMIT_CHOICE.

Definition at line 101 of file submit_macros.hpp.

Typedef Documentation

◆ TSEQSUBMIT_CHOICE

Definition at line 56 of file submit_macros.hpp.

Modified on Mon Feb 26 04:00:25 2024 by modify_doxy.py rev. 669887