41 #ifndef OBJECTS_MACRO_REPLACE_FUNC_BASE_HPP
42 #define OBJECTS_MACRO_REPLACE_FUNC_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
101 virtual void Reset(
void);
220 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CReplace_func_Base(const CReplace_func_Base &)
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
NCBI_NS_NCBI::CSerialObject * m_object
const TSimple_replace & GetSimple_replace(void) const
Get the variant data.
const THaem_replace & GetHaem_replace(void) const
Get the variant data.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
TSimple_replace & SetSimple_replace(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
CReplace_func_Base & operator=(const CReplace_func_Base &)
bool IsHaem_replace(void) const
Check if variant Haem_replace is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
virtual void Reset(void)
Reset the whole object.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
virtual ~CReplace_func_Base(void)
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
static const char *const sm_SelectionNames[]
bool IsSimple_replace(void) const
Check if variant Simple_replace is selected.
THaem_replace & SetHaem_replace(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
CSimple_replace TSimple_replace
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
@ e_not_set
No variant selected.
@ e_MaxChoice
== e_Haem_replace+1
const GenericPointer< typename T::ValueType > T2 value