41 #ifndef OBJECTS_MACRO_CDSGENEPR_CONSTRAINT_FIELD_BASE_HPP
42 #define OBJECTS_MACRO_CDSGENEPR_CONSTRAINT_FIELD_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
96 virtual void Reset(
void);
User-defined methods of the data storage class.
CCDSGeneProt_constraint_field_Base –.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
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.
CCDSGeneProt_constraint_field_Base(void)
TField GetField(void) const
Get the variant data.
CCDSGeneProt_constraint_field_Base & operator=(const CCDSGeneProt_constraint_field_Base &)
E_Choice Which(void) const
Which variant is currently selected.
CCDSGeneProt_constraint_field_Base(const CCDSGeneProt_constraint_field_Base &)
virtual void Reset(void)
Reset the whole object.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
ECDSGeneProt_field
Access to ECDSGeneProt_field's attributes (values, names) as defined in spec.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TField & SetField(void)
Select the variant.
ECDSGeneProt_field TField
DECLARE_INTERNAL_TYPE_INFO()
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsField(void) const
Check if variant Field is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
virtual ~CCDSGeneProt_constraint_field_Base(void)
static const char *const sm_SelectionNames[]
@ e_not_set
No variant selected.
@ e_MaxChoice
== e_Field+1