41 #ifndef OBJECTS_TAXON3_T3REPLY_BASE_HPP
42 #define OBJECTS_TAXON3_T3REPLY_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
98 virtual void Reset(
void);
101 virtual void ResetSelection(
void);
107 E_Choice Which(
void)
const;
113 void CheckSelected(E_Choice index)
const;
119 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
127 static string SelectionName(E_Choice index);
158 bool IsError(
void)
const;
164 const TError& GetError(
void)
const;
184 bool IsData(
void)
const;
190 const TData& GetData(
void)
const;
196 TData& SetData(
void);
213 static const char*
const sm_SelectionNames[];
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_TAXON3_EXPORT
bool IsData(void) const
Check if variant Data is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
DECLARE_INTERNAL_TYPE_INFO()
CT3Reply_Base(const CT3Reply_Base &)
NCBI_NS_NCBI::CSerialObject * m_object
CT3Reply_Base & operator=(const CT3Reply_Base &)
bool IsError(void) const
Check if variant Error is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
E_Choice Which(void) const
Which variant is currently selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value