41 #ifndef OBJECTS_VARREP_AALOCATION_BASE_HPP
42 #define OBJECTS_VARREP_AALOCATION_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
100 virtual void Reset(
void);
213 bool IsInt(
void)
const;
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TInt & GetInt(void) const
Get the variant data.
TInt & SetInt(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
virtual void Reset(void)
Reset the whole object.
NCBI_NS_NCBI::CSerialObject * m_object
const TSite & GetSite(void) const
Get the variant data.
CAaLocation_Base & operator=(const CAaLocation_Base &)
static const char *const sm_SelectionNames[]
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TSite & SetSite(void)
Select the variant.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
const TRange & GetRange(void) const
Get the variant data.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TRange & SetRange(void)
Select the variant.
CAaLocation_Base(const CAaLocation_Base &)
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsInt(void) const
Check if variant Int is selected.
bool IsRange(void) const
Check if variant Range is selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
DECLARE_INTERNAL_TYPE_INFO()
virtual ~CAaLocation_Base(void)
bool IsSite(void) const
Check if variant Site is selected.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value