ResetSelection(
void);
150E_Choice Which(
void)
const;
156 voidCheckSelected(E_Choice index)
const;
162NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
170 static stringSelectionName(E_Choice index);
210 boolIsId(
void)
const;
236 boolIsEntry(
void)
const;
242 const TEntry& GetEntry(
void)
const;
248 TEntry& SetEntry(
void);
262 boolIsAnnot(
void)
const;
268 const TAnnot& GetAnnot(
void)
const;
274 TAnnot& SetAnnot(
void);
288 boolIsSubmit(
void)
const;
294 const TSubmit& GetSubmit(
void)
const;
314 boolIsSeq_align(
void)
const;
320 const TSeq_align& GetSeq_align(
void)
const;
340 boolIsSeq_align_set(
void)
const;
366 boolIsObsolete_plugin(
void)
const;
392 boolIsOther(
void)
const;
398 const TOther& GetOther(
void)
const;
404 TOther& SetOther(
void);
418 boolIsPmid(
void)
const;
424 const TPmid& GetPmid(
void)
const;
430 TPmid& SetPmid(
void);
439 boolIsTaxid(
void)
const;
445 const TTaxid& GetTaxid(
void)
const;
451 TTaxid& SetTaxid(
void);
460 boolIsHuge_file(
void)
const;
466 const THuge_file& GetHuge_file(
void)
const;
489 static const char*
constsm_SelectionNames[];
492NCBI_NS_NCBI::CUnionBuffer<TPmid>
m_Pmid;
500 typedeflist< CRef< CAnnotdesc > >
TDescr;
528 boolIsSetId(
void)
const;
535 boolCanGetId(
void)
const;
538 voidResetId(
void);
566 boolIsSetLabel(
void)
const;
573 boolCanGetLabel(
void)
const;
576 voidResetLabel(
void);
595 TLabel& SetLabel(
void);
605 boolIsSetDescr(
void)
const;
612 boolCanGetDescr(
void)
const;
615 voidResetDescr(
void);
621 const TDescr& GetDescr(
void)
const;
627 TDescr& SetDescr(
void);
636 boolIsSetItem(
void)
const;
643 boolCanGetItem(
void)
const;
646 voidResetItem(
void);
652 const TItem& GetItem(
void)
const;
664 TItem& SetItem(
void);
674 boolIsSetData_plugin(
void)
const;
681 boolCanGetData_plugin(
void)
const;
684 voidResetData_plugin(
void);
713 boolIsSetDisabled(
void)
const;
720 boolCanGetDisabled(
void)
const;
723 voidResetDisabled(
void);
744 virtual voidReset(
void);
780 if( m_choice != index )
781ThrowInvalidSelection(index);
790DoSelect(index, pool);
797Select(index, reset, 0);
803 returnm_choice == e_Id;
809 returnm_choice == e_Entry;
815 returnm_choice == e_Annot;
821 returnm_choice == e_Submit;
827 returnm_choice == e_Seq_align;
833 returnm_choice == e_Seq_align_set;
839 returnm_choice == e_Obsolete_plugin;
845 returnm_choice == e_Other;
851 returnm_choice == e_Pmid;
857CheckSelected(e_Pmid);
871 returnm_choice == e_Taxid;
877CheckSelected(e_Taxid);
891 returnm_choice == e_Huge_file;
972 m_Label= std::forward<CProjectItem_Base::TLabel>(
value);
1016 return m_Item.NotEmpty();
CHugeFileProjectItem â.
Base class for all serializable objects.
Defines to provide correct exporting from DLLs in Windows.
#define NCBI_GBPROJ_EXPORT
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
string GetLabel(const CSeq_id &id)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
DECLARE_INTERNAL_TYPE_INFO()
bool IsObsolete_plugin(void) const
Check if variant Obsolete_plugin is selected.
CSeq_align_set TSeq_align_set
bool IsSetItem(void) const
Check if a value has been assigned to Item data member.
bool IsSetLabel(void) const
user-defined label Check if a value has been assigned to Label data member.
CProjectItem_Base & operator=(const CProjectItem_Base &)
TDescr & SetDescr(void)
Assign a value to Descr data member.
bool CanGetItem(void) const
Check if it is safe to call GetItem method.
bool IsTaxid(void) const
Check if variant Taxid is selected.
bool IsSubmit(void) const
Check if variant Submit is selected.
NCBI_NS_NCBI::CUnionBuffer< TTaxid > m_Taxid
TId GetId(void) const
Get the Id member data.
TDisabled & SetDisabled(void)
Assign a value to Disabled data member.
E_Choice
Choice variants.
bool IsSetDisabled(void) const
"folder open" state Check if a value has been assigned to Disabled data member.
bool IsId(void) const
Check if variant Id is selected.
TLabel & SetLabel(void)
Assign a value to Label data member.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
void ResetItem(void)
Reset Item data member.
E_Choice Which(void) const
Which variant is currently selected.
void ResetDisabled(void)
Reset Disabled data member.
TDisabled GetDisabled(void) const
Get the Disabled member data.
bool CanGetDescr(void) const
Check if it is safe to call GetDescr method.
const TLabel & GetLabel(void) const
Get the Label member data.
TData_plugin & SetData_plugin(void)
Assign a value to Data_plugin data member.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsPmid(void) const
Check if variant Pmid is selected.
bool IsAnnot(void) const
Check if variant Annot is selected.
NCBI_NS_NCBI::CUnionBuffer< TPmid > m_Pmid
const TItem & GetItem(void) const
Get the Item member data.
bool CanGetId(void) const
Check if it is safe to call GetId method.
bool IsSeq_align_set(void) const
Check if variant Seq_align_set is selected.
bool IsSetDescr(void) const
user-defined descriptors Check if a value has been assigned to Descr data member.
const TDescr & GetDescr(void) const
Get the Descr member data.
Tparent::CMemberIndex< E_memberIndex, 7 > TmemberIndex
bool IsEntry(void) const
Check if variant Entry is selected.
CHugeFileProjectItem THuge_file
bool IsHuge_file(void) const
Check if variant Huge_file is selected.
bool CanGetData_plugin(void) const
Check if it is safe to call GetData_plugin method.
C_Item & operator=(const C_Item &)
TId & SetId(void)
Assign a value to Id data member.
const TData_plugin & GetData_plugin(void) const
Get the Data_plugin member data.
list< CRef< CAnnotdesc > > m_Descr
bool IsSetId(void) const
serial number - must be unique in a project (GBProject) Check if a value has been assigned to Id data...
bool CanGetLabel(void) const
Check if it is safe to call GetLabel method.
CAbstractProjectItem TOther
bool IsOther(void) const
Check if variant Other is selected.
CDummyObsoleteType TObsolete_plugin
bool CanGetDisabled(void) const
Check if it is safe to call GetDisabled method.
TItem & SetItem(void)
Assign a value to Item data member.
CProjectItem_Base(const CProjectItem_Base &)
DECLARE_INTERNAL_TYPE_INFO()
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
const TTaxid & GetTaxid(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
void ResetId(void)
Reset Id data member.
NCBI_NS_NCBI::CSerialObject * m_object
const TPmid & GetPmid(void) const
Get the variant data.
TPmid & SetPmid(void)
Select the variant.
bool IsSeq_align(void) const
Check if variant Seq_align is selected.
TTaxid & SetTaxid(void)
Select the variant.
bool IsSetData_plugin(void) const
name of the plugin that can handle External Data for the project Check if a value has been assigned t...
list< CRef< CAnnotdesc > > TDescr
@ e_Obsolete_plugin
plugin message This is deprecated. DO NOT USE THIS FIELD. The original spec is: plugin PluginMessage....
@ e_Other
arbitrary object (use with care!)
@ e_Annot
annotation only
@ e_Id
for projects that simply import a far-pointer
@ e_Seq_align
seq-align and seq-align-set as registered items
@ e_Submit
for submission
@ e_Entry
for projects that contain something else
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4