41 #ifndef OBJECTS_MACRO_SOURCE_QUAL_CHOICE_BASE_HPP
42 #define OBJECTS_MACRO_SOURCE_QUAL_CHOICE_BASE_HPP
54 #ifndef BEGIN_objects_SCOPE
55 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
56 # define END_objects_SCOPE END_SCOPE(objects)
102 virtual void Reset(
void);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
Base class for all serializable objects.
CSource_qual_choice_Base –.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CSource_qual_choice_Base & operator=(const CSource_qual_choice_Base &)
ESource_qual
Access to ESource_qual's attributes (values, names) as defined in spec.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TOrigin & SetOrigin(void)
Select the variant.
TTextqual GetTextqual(void) const
Get the variant data.
virtual ~CSource_qual_choice_Base(void)
TMgcode & SetMgcode(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TTextqual & SetTextqual(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TLocation & SetLocation(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
CSource_qual_choice_Base(void)
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
E_Choice Which(void) const
Which variant is currently selected.
ESource_origin
Access to ESource_origin's attributes (values, names) as defined in spec.
bool IsMgcode(void) const
Check if variant Mgcode is selected.
CSource_qual_choice_Base(const CSource_qual_choice_Base &)
TOrigin GetOrigin(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
TGcode & SetGcode(void)
Select the variant.
ESource_location
Access to ESource_location's attributes (values, names) as defined in spec.
TMgcode GetMgcode(void) const
Get the variant data.
virtual void Reset(void)
Reset the whole object.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
bool IsGcode(void) const
Check if variant Gcode is selected.
static const char *const sm_SelectionNames[]
TGcode GetGcode(void) const
Get the variant data.
ESource_location TLocation
bool IsTextqual(void) const
Check if variant Textqual is selected.
TLocation GetLocation(void) const
Get the variant data.
bool IsLocation(void) const
Check if variant Location is selected.
bool IsOrigin(void) const
Check if variant Origin is selected.
@ e_not_set
No variant selected.
@ e_MaxChoice
== e_Mgcode+1
const GenericPointer< typename T::ValueType > T2 value