Reset(
void);
110 virtual voidResetSelection(
void);
116E_Choice Which(
void)
const;
122 voidCheckSelected(E_Choice index)
const;
128NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
136 static stringSelectionName(E_Choice index);
170 boolIsDbtag(
void)
const;
176 const TDbtag& GetDbtag(
void)
const;
182 TDbtag& SetDbtag(
void);
196 boolIsName(
void)
const;
202 const TName& GetName(
void)
const;
208 TName& SetName(
void);
222 boolIsMl(
void)
const;
228 const TMl& GetMl(
void)
const;
249 boolIsStr(
void)
const;
255 const TStr& GetStr(
void)
const;
261 TStr& SetStr(
void);
276 boolIsConsortium(
void)
const;
306 static const char*
constsm_SelectionNames[];
309NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
@Name_std.hpp User-defined methods of the data storage class.
Person-id is to define a std element for people.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GENERAL_EXPORT
TMl & SetMl(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
const TStr & GetStr(void) const
Get the variant data.
bool IsConsortium(void) const
Check if variant Consortium is selected.
CPerson_id_Base & operator=(const CPerson_id_Base &)
bool IsMl(void) const
Check if variant Ml is selected.
E_Choice
Choice variants.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsName(void) const
Check if variant Name is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
const TMl & GetMl(void) const
Get the variant data.
TConsortium & SetConsortium(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
CPerson_id_Base(const CPerson_id_Base &)
const TConsortium & GetConsortium(void) const
Get the variant data.
bool IsStr(void) const
Check if variant Str is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsDbtag(void) const
Check if variant Dbtag is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
NCBI_NS_NCBI::CSerialObject * m_object
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
TStr & SetStr(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
@ e_Dbtag
any defined database tag
@ e_Ml
MEDLINE name (semi-structured) eg. "Jones RM".
@ e_Consortium
consortium name
@ e_Str
unstructured name
@ 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