Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | Protected Attributes | List of all members
Core::ActionContext Class Reference

#include <ActionContext.h>

Inheritance diagram for Core::ActionContext:
Core::ActionContextContainer Core::InterfaceActionContext Core::PythonActionContext Seg3D::ControllerContext Seg3D::UndoActionContext

Public Member Functions

virtual void report_error (const std::string &error)
 
virtual void report_warning (const std::string &warning)
 
virtual void report_message (const std::string &message)
 
virtual void report_status (ActionStatus status)
 
virtual void report_result (const ActionResultHandle &result)
 
virtual void report_need_resource (NotifierHandle notifier)
 
virtual void report_done ()
 
virtual ActionStatus status () const
 
virtual ActionSource source () const
 
virtual Core::NotifierHandle get_resource_notifier ()
 
virtual void reset_context ()
 
virtual Core::ActionResultHandle get_result ()
 
virtual std::string get_error_message ()
 
bool is_success ()
 
bool is_invalid ()
 
bool is_unavailable ()
 
bool is_error ()
 

Protected Attributes

ActionStatus status_
 
std::string error_msg_
 
Core::NotifierHandle notifier_
 
Core::ActionResultHandle result_
 

Detailed Description

The action context contains all the information for the action to relay information back to the point of origin. As this type of information is not cached in provenance or in session files, the ActionContext is a separate entity with a pointer to the Action which describes the action that needs to be done. Action itself contains the pointers to the functions that need to be executed and with which parameters, but not where to report errors, the source of the action ect. The latter information is contained in the ActionContext. Each source needs to derive its own ActionContext from this class and generate the specifics of where information needs to be relayed to.


The documentation for this class was generated from the following files: