Go to the SVN repository for this file.
41 #ifndef OBJECTS_SEQ_ANNOT_ID_BASE_HPP 42 #define OBJECTS_SEQ_ANNOT_ID_BASE_HPP 48 #ifndef BEGIN_objects_SCOPE 49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) 50 # define END_objects_SCOPE END_SCOPE(objects) 101 virtual voidReset(
void);
104 virtual voidResetSelection(
void);
110E_Choice Which(
void)
const;
116 voidCheckSelected(E_Choice index)
const;
122NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
130 static stringSelectionName(E_Choice index);
163 boolIsLocal(
void)
const;
169 const TLocal& GetLocal(
void)
const;
175 TLocal& SetLocal(
void);
189 boolIsNcbi(
void)
const;
195 TNcbiGetNcbi(
void)
const;
201 TNcbi& SetNcbi(
void);
216 boolIsGeneral(
void)
const;
222 const TGeneral& GetGeneral(
void)
const;
242 boolIsOther(
void)
const;
248 const TOther& GetOther(
void)
const;
254 TOther& SetOther(
void);
271 static const char*
constsm_SelectionNames[];
333 return reinterpret_cast<const TNcbi&
>(
m_Ncbi);
Base class for all serializable objects.
SStrictId_Entrez::TId TEntrezId
TEntrezId type for entrez ids which require the same strictness as TGi.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
NCBI_NS_NCBI::TEntrezId TNcbi
CAnnot_id_Base & operator=(const CAnnot_id_Base &)
TNcbi GetNcbi(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
E_Choice Which(void) const
Which variant is currently selected.
bool IsGeneral(void) const
Check if variant General is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
NCBI_NS_NCBI::CSerialObject * m_object
E_Choice
Choice variants.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TNcbi & SetNcbi(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsOther(void) const
Check if variant Other is selected.
CAnnot_id_Base(const CAnnot_id_Base &)
bool IsLocal(void) const
Check if variant Local is selected.
DECLARE_INTERNAL_TYPE_INFO()
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsNcbi(void) const
Check if variant Ncbi is selected.
@ e_not_set
No variant selected.
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