41 #ifndef OBJECTS_ID1_ID1SERVER_BACK_BASE_HPP
42 #define OBJECTS_ID1_ID1SERVER_BACK_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
115 virtual void Reset(
void);
118 virtual void ResetSelection(
void);
124 E_Choice Which(
void)
const;
130 void CheckSelected(E_Choice index)
const;
136 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
144 static string SelectionName(E_Choice index);
167 typedef list< CRef< CSeq_id > >
TIds;
182 bool IsInit(
void)
const;
194 bool IsError(
void)
const;
200 TError GetError(
void)
const;
221 bool IsGotgi(
void)
const;
227 TGotgi GetGotgi(
void)
const;
248 bool IsGotseqentry(
void)
const;
274 bool IsGotdeadseqentry(
void)
const;
299 bool IsFini(
void)
const;
311 bool IsGistate(
void)
const;
338 bool IsIds(
void)
const;
359 bool IsGihist(
void)
const;
365 const TGihist& GetGihist(
void)
const;
380 bool IsGirevhist(
void)
const;
401 bool IsGotsewithinfo(
void)
const;
427 bool IsGotblobinfo(
void)
const;
456 static const char*
const sm_SelectionNames[];
462 NCBI_NS_NCBI::CUnionBuffer<TIds>
m_Ids;
Base class for all serializable objects.
CStrictId< SStrictId_Gi, SStrictId_Gi::TId > TGi
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetFini(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TGirevhist > m_Girevhist
bool IsGotsewithinfo(void) const
Check if variant Gotsewithinfo is selected.
bool IsIds(void) const
Check if variant Ids is selected.
TIds & SetIds(void)
Select the variant.
bool IsGotseqentry(void) const
Check if variant Gotseqentry is selected.
TGotgi & SetGotgi(void)
Select the variant.
CSeq_entry TGotdeadseqentry
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
E_Choice Which(void) const
Which variant is currently selected.
TError & SetError(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TError GetError(void) const
Get the variant data.
bool IsError(void) const
Check if variant Error is selected.
bool IsGotgi(void) const
Check if variant Gotgi is selected.
TGistate & SetGistate(void)
Select the variant.
list< CRef< CID1Seq_hist > > TGirevhist
NCBI_NS_NCBI::CUnionBuffer< TGirevhist > m_Girevhist
NCBI_NS_NCBI::CUnionBuffer< TIds > m_Ids
NCBI_NS_NCBI::CUnionBuffer< TGihist > m_Gihist
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsGistate(void) const
Check if variant Gistate is selected.
TGihist & SetGihist(void)
Select the variant.
NCBI_NS_NCBI::CSerialObject * m_object
bool IsFini(void) const
Check if variant Fini is selected.
list< CRef< CID1Seq_hist > > TGihist
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
NCBI_NS_NCBI::CUnionBuffer< TIds > m_Ids
TGotgi GetGotgi(void) const
Get the variant data.
CID1server_back_Base & operator=(const CID1server_back_Base &)
const TIds & GetIds(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TGihist > m_Gihist
bool IsGihist(void) const
Check if variant Gihist is selected.
bool IsGotdeadseqentry(void) const
Check if variant Gotdeadseqentry is selected.
const TGirevhist & GetGirevhist(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
list< CRef< CSeq_id > > TIds
bool IsGotblobinfo(void) const
Check if variant Gotblobinfo is selected.
CID1blob_info TGotblobinfo
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsGirevhist(void) const
Check if variant Girevhist is selected.
CID1SeqEntry_info TGotsewithinfo
DECLARE_INTERNAL_TYPE_INFO()
bool IsInit(void) const
Check if variant Init is selected.
TGirevhist & SetGirevhist(void)
Select the variant.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TGistate GetGistate(void) const
Get the variant data.
void SetInit(void)
Select the variant.
const TGihist & GetGihist(void) const
Get the variant data.
CID1server_back_Base(const CID1server_back_Base &)
@ e_not_set
No variant selected.
@ e_Gihist
because hand crafted Seq-hist does not follow same conventions
const GenericPointer< typename T::ValueType > T2 value
static bool GetIds(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)