41 #ifndef OBJECTS_REMAP_RMREPLY_BASE_HPP
42 #define OBJECTS_REMAP_RMREPLY_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
105 virtual void Reset(
void);
108 virtual void ResetSelection(
void);
114 E_Choice Which(
void)
const;
120 void CheckSelected(E_Choice index)
const;
126 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
134 static string SelectionName(E_Choice index);
168 bool IsError(
void)
const;
174 const TError& GetError(
void)
const;
195 bool IsRemap(
void)
const;
201 const TRemap& GetRemap(
void)
const;
221 bool IsMaps_to_builds(
void)
const;
242 bool IsMaps_from_builds(
void)
const;
263 bool IsAll_builds(
void)
const;
287 static const char*
const sm_SelectionNames[];
293 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.
#define NCBI_REMAP_EXPORT
CRMReply_Base(const CRMReply_Base &)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsMaps_to_builds(void) const
Check if variant Maps_to_builds is selected.
const TMaps_to_builds & GetMaps_to_builds(void) const
Get the variant data.
const TAll_builds & GetAll_builds(void) const
Get the variant data.
list< string > TAll_builds
bool IsRemap(void) const
Check if variant Remap is selected.
NCBI_NS_NCBI::CUnionBuffer< TAll_builds > m_All_builds
TMaps_to_builds & SetMaps_to_builds(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
TAll_builds & SetAll_builds(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
TError & SetError(void)
Select the variant.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
NCBI_NS_NCBI::CSerialObject * m_object
NCBI_NS_NCBI::CUnionBuffer< TMaps_to_builds > m_Maps_to_builds
CRMReply_Base & operator=(const CRMReply_Base &)
bool IsError(void) const
Check if variant Error is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
list< string > TMaps_to_builds
NCBI_NS_NCBI::CUnionBuffer< TMaps_to_builds > m_Maps_to_builds
NCBI_NS_NCBI::CUnionBuffer< TMaps_from_builds > m_Maps_from_builds
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsMaps_from_builds(void) const
Check if variant Maps_from_builds is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
DECLARE_INTERNAL_TYPE_INFO()
const TError & GetError(void) const
Get the variant data.
TMaps_from_builds & SetMaps_from_builds(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
bool IsAll_builds(void) const
Check if variant All_builds is selected.
NCBI_NS_NCBI::CUnionBuffer< TAll_builds > m_All_builds
NCBI_NS_NCBI::CUnionBuffer< TMaps_from_builds > m_Maps_from_builds
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
list< string > TMaps_from_builds
const TMaps_from_builds & GetMaps_from_builds(void) const
Get the variant data.
@ e_All_builds
all builds that the server knows of
@ e_not_set
No variant selected.
@ e_Error
if nothing can be returned
@ e_Maps_from_builds
all the builds that the server knows how to map to this build
@ e_Maps_to_builds
all the builds that the server knows how to map this build to
@ e_Remap
result of actual remapping
const GenericPointer< typename T::ValueType > T2 value