41 #ifndef OBJECTS_VARIATION_LIBS_DBSNP_SEARCH_BY_RSID_SEARCHBYRSIDREPLY_BASE_HPP
42 #define OBJECTS_VARIATION_LIBS_DBSNP_SEARCH_BY_RSID_SEARCHBYRSIDREPLY_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
103 virtual void Reset(
void);
Service reply format definition.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
virtual ~CSearchByRsIdReply_Base(void)
bool IsPlacements(void) const
Check if variant Placements is selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
E_Choice Which(void) const
Which variant is currently selected.
list< CRef< CPlacement > > TPlacements
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
static const char *const sm_SelectionNames[]
NCBI_NS_NCBI::CSerialObject * m_object
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
NCBI_NS_NCBI::CUnionBuffer< TPlacements > m_Placements
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
CSearchByRsIdReply_Base(void)
CSearchByRsIdReply_Base & operator=(const CSearchByRsIdReply_Base &)
TError & SetError(void)
Select the variant.
const TPlacements & GetPlacements(void) const
Get the variant data.
const TError & GetError(void) const
Get the variant data.
bool IsError(void) const
Check if variant Error is selected.
NCBI_NS_NCBI::CUnionBuffer< TPlacements > m_Placements
virtual void Reset(void)
Reset the whole object.
TPlacements & SetPlacements(void)
Select the variant.
CSearchByRsIdReply_Base(const CSearchByRsIdReply_Base &)
DECLARE_INTERNAL_TYPE_INFO()
@ e_not_set
No variant selected.
@ e_Error
On failure error details will be placed here,.
@ e_Placements
On success list of placements will be placed here.
@ e_MaxChoice
== e_Error+1
const GenericPointer< typename T::ValueType > T2 value