41 #ifndef GUI_OBJECTS_GBENCHSERVICEREQUEST_BASE_HPP
42 #define GUI_OBJECTS_GBENCHSERVICEREQUEST_BASE_HPP
51 #ifndef BEGIN_objects_SCOPE
52 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
53 # define END_objects_SCOPE END_SCOPE(objects)
108 virtual void Reset(
void);
111 virtual void ResetSelection(
void);
117 E_Choice Which(
void)
const;
123 void CheckSelected(E_Choice index)
const;
129 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
137 static string SelectionName(E_Choice index);
170 bool IsInit(
void)
const;
176 const TInit& GetInit(
void)
const;
182 TInit& SetInit(
void);
196 bool IsVersion_update(
void)
const;
222 bool IsFeedback(
void)
const;
228 const TFeedback& GetFeedback(
void)
const;
248 bool IsGeneric(
void)
const;
254 const TGeneric& GetGeneric(
void)
const;
277 static const char*
const sm_SelectionNames[];
A request is a choice of a few different entities.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIOBJECTS_EXPORT
CGBenchServiceRequest_Base & operator=(const CGBenchServiceRequest_Base &)
CGBenchVersionRequest TVersion_update
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsInit(void) const
Check if variant Init is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsFeedback(void) const
Check if variant Feedback is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool IsGeneric(void) const
Check if variant Generic is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
CGBenchFeedbackRequest TFeedback
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsVersion_update(void) const
Check if variant Version_update is selected.
NCBI_NS_NCBI::CSerialObject * m_object
E_Choice Which(void) const
Which variant is currently selected.
DECLARE_INTERNAL_TYPE_INFO()
CGBenchServiceRequest_Base(const CGBenchServiceRequest_Base &)
@ e_not_set
No variant selected.
Defines to provide correct exporting from DLLs in Windows.
const GenericPointer< typename T::ValueType > T2 value