41 #ifndef OBJECTS_MACRO_FIX_CAPS_ACTION_BASE_HPP
42 #define OBJECTS_MACRO_FIX_CAPS_ACTION_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
105 virtual void Reset(
void);
166 bool IsPub(
void)
const;
User-defined methods of the data storage class.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ESource_qual
Access to ESource_qual's attributes (values, names) as defined in spec.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TPub & SetPub(void)
Select the variant.
TAuthor & SetAuthor(void)
Select the variant.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
void SetMouse_strain(void)
Select the variant.
bool IsMouse_strain(void) const
Check if variant Mouse_strain is selected.
const TAuthor & GetAuthor(void) const
Get the variant data.
bool IsPub(void) const
Check if variant Pub is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
NCBI_NS_NCBI::CSerialObject * m_object
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
E_Choice Which(void) const
Which variant is currently selected.
void SetSrc_country(void)
Select the variant.
TSrc_qual GetSrc_qual(void) const
Get the variant data.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
CFix_caps_action_Base & operator=(const CFix_caps_action_Base &)
bool IsSrc_country(void) const
Check if variant Src_country is selected.
static const char *const sm_SelectionNames[]
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsAuthor(void) const
Check if variant Author is selected.
virtual ~CFix_caps_action_Base(void)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
virtual void Reset(void)
Reset the whole object.
CFix_caps_action_Base(void)
const TPub & GetPub(void) const
Get the variant data.
DECLARE_INTERNAL_TYPE_INFO()
CFix_pub_caps_action TPub
CFix_caps_action_Base(const CFix_caps_action_Base &)
TSrc_qual & SetSrc_qual(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsSrc_qual(void) const
Check if variant Src_qual is selected.
@ e_MaxChoice
== e_Author+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value