41 #ifndef OBJECTS_MACRO_TEXT_MARKER_BASE_HPP
42 #define OBJECTS_MACRO_TEXT_MARKER_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
98 virtual void Reset(
void);
212 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.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsLetters(void) const
Check if variant Letters is selected.
const TFree_text & GetFree_text(void) const
Get the variant data.
void SetLetters(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
DECLARE_INTERNAL_TYPE_INFO()
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TFree_text & SetFree_text(void)
Select the variant.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsDigits(void) const
Check if variant Digits is selected.
static const char *const sm_SelectionNames[]
virtual void Reset(void)
Reset the whole object.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
CText_marker_Base & operator=(const CText_marker_Base &)
E_Choice Which(void) const
Which variant is currently selected.
void SetDigits(void)
Select the variant.
void * m_dummy_pointer_for_alignment
bool IsFree_text(void) const
Check if variant Free_text is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
CText_marker_Base(const CText_marker_Base &)
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
virtual ~CText_marker_Base(void)
@ e_MaxChoice
== e_Letters+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value