41 #ifndef GUI_OBJECTS_PLUGINREPLYACTION_BASE_HPP
42 #define GUI_OBJECTS_PLUGINREPLYACTION_BASE_HPP
55 #ifndef BEGIN_objects_SCOPE
56 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
57 # define END_objects_SCOPE END_SCOPE(objects)
121 virtual void Reset(
void);
124 virtual void ResetSelection(
void);
130 E_Choice Which(
void)
const;
136 void CheckSelected(E_Choice index)
const;
142 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
150 static string SelectionName(E_Choice index);
190 bool IsAdd_to_project(
void)
const;
193 void SetAdd_to_project(
void);
202 bool IsNew_view(
void)
const;
208 const TNew_view& GetNew_view(
void)
const;
229 bool IsNew_composite_view(
void)
const;
256 bool IsStore(
void)
const;
262 const TStore& GetStore(
void)
const;
283 bool IsCreate_project(
void)
const;
310 bool IsCreate_single_project(
void)
const;
337 bool IsAttach_project(
void)
const;
363 bool IsRefresh_project(
void)
const;
389 bool IsAdd_to_MRU(
void)
const;
415 bool IsError(
void)
const;
421 const TError& GetError(
void)
const;
442 bool IsPlugin_cmd_run(
void)
const;
468 bool IsRegister_interface(
void)
const;
471 void SetRegister_interface(
void);
480 bool IsWarning(
void)
const;
486 const TWarning& GetWarning(
void)
const;
507 bool IsInfo(
void)
const;
513 const TInfo& GetInfo(
void)
const;
519 TInfo& SetInfo(
void);
537 static const char*
const sm_SelectionNames[];
540 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_GUIOBJECTS_EXPORT
TCreate_project & SetCreate_project(void)
Select the variant.
TStore & SetStore(void)
Select the variant.
string TCreate_single_project
bool IsCreate_project(void) const
Check if variant Create_project is selected.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
CGBProjectHandle TRefresh_project
const TCreate_project & GetCreate_project(void) const
Get the variant data.
TInfo & SetInfo(void)
Select the variant.
bool IsNew_view(void) const
Check if variant New_view is selected.
const TStore & GetStore(void) const
Get the variant data.
TWarning & SetWarning(void)
Select the variant.
const TNew_composite_view & GetNew_composite_view(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
DECLARE_INTERNAL_TYPE_INFO()
bool IsWarning(void) const
Check if variant Warning is selected.
TNew_view & SetNew_view(void)
Select the variant.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TError & SetError(void)
Select the variant.
CPluginReplyAction_Base & operator=(const CPluginReplyAction_Base &)
bool IsRefresh_project(void) const
Check if variant Refresh_project is selected.
const TError & GetError(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.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsStore(void) const
Check if variant Store is selected.
TCreate_single_project & SetCreate_single_project(void)
Select the variant.
E_Choice Which(void) const
Which variant is currently selected.
CGBProjectHandle TAttach_project
bool IsAdd_to_project(void) const
Check if variant Add_to_project is selected.
bool IsCreate_single_project(void) const
Check if variant Create_single_project is selected.
bool IsAdd_to_MRU(void) const
Check if variant Add_to_MRU is selected.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
const TCreate_single_project & GetCreate_single_project(void) const
Get the variant data.
bool IsAttach_project(void) const
Check if variant Attach_project is selected.
void SetRegister_interface(void)
Select the variant.
bool IsRegister_interface(void) const
Check if variant Register_interface is selected.
void SetAdd_to_project(void)
Select the variant.
bool IsInfo(void) const
Check if variant Info is selected.
TNew_composite_view & SetNew_composite_view(void)
Select the variant.
string TNew_composite_view
const TInfo & GetInfo(void) const
Get the variant data.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
NCBI_NS_NCBI::CSerialObject * m_object
CPluginMRUEntry TAdd_to_MRU
const TPlugin_cmd_run & GetPlugin_cmd_run(void) const
Get the variant data.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsError(void) const
Check if variant Error is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
CPluginReplyAction_Base(const CPluginReplyAction_Base &)
bool IsPlugin_cmd_run(void) const
Check if variant Plugin_cmd_run is selected.
TPlugin_cmd_run & SetPlugin_cmd_run(void)
Select the variant.
const TNew_view & GetNew_view(void) const
Get the variant data.
const TWarning & GetWarning(void) const
Get the variant data.
bool IsNew_composite_view(void) const
Check if variant New_composite_view is selected.
@ e_Info
report an info-level message to the user
@ e_Attach_project
attach loaded project to Project Manager
@ e_Refresh_project
refresh loaded project to Project Manager
@ e_New_composite_view
launch a view named by the supplied argument
@ e_not_set
No variant selected.
@ e_Error
show an error message
@ e_Add_to_MRU
a dd an entry to the MRU list
@ e_Create_single_project
create single project for any number of Raw items
@ e_Plugin_cmd_run
execute 'run' on a named plugin with our results
@ e_Warning
report a warning to the user
@ e_Create_project
create an empty project(s) for Raw item(s), takes plugin param as argument
@ e_Add_to_project
add this item to the associated project
@ e_Store
store this object for future use The string parameter is used as a caller-defined key for retrieval
@ e_New_view
launch a view named by the supplied argument
@ e_Register_interface
register object created by the plugin
Defines to provide correct exporting from DLLs in Windows.