Go to the SVN repository for this file.
41 #ifndef OBJECTS_SEQFEAT_RSITE_REF_BASE_HPP 42 #define OBJECTS_SEQFEAT_RSITE_REF_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 voidReset(
void);
104 virtual voidResetSelection(
void);
110E_Choice Which(
void)
const;
116 voidCheckSelected(E_Choice index)
const;
122NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
130 static stringSelectionName(E_Choice index);
161 boolIsStr(
void)
const;
167 const TStr& GetStr(
void)
const;
173 TStr& SetStr(
void);
188 boolIsDb(
void)
const;
194 const TDb& GetDb(
void)
const;
217 static const char*
constsm_SelectionNames[];
220NCBI_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.
#define NCBI_SEQFEAT_EXPORT
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
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.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
E_Choice Which(void) const
Which variant is currently selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
CRsite_ref_Base & operator=(const CRsite_ref_Base &)
E_Choice
Choice variants.
bool IsDb(void) const
Check if variant Db is selected.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
CRsite_ref_Base(const CRsite_ref_Base &)
TStr & SetStr(void)
Select the variant.
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.
bool IsStr(void) const
Check if variant Str is selected.
const TStr & GetStr(void) const
Get the variant data.
NCBI_NS_NCBI::CSerialObject * m_object
@ e_Db
pointer to a restriction site database
@ e_Str
may be unparsable
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4