12#include <boost/mpl/vector.hpp>
13#include <boost/python/bases.hpp>
14#include <boost/python/class.hpp>
15#include <boost/python/make_function.hpp>
18using namespace std::placeholders;
46 "AnalysisDataServiceObserver",
"Observes AnalysisDataService notifications: all only")
50 "Observe AnalysisDataService for any changes")
54 "Observe AnalysisDataService for a workspace being added")
55 .def(
"observeReplace",
58 "Observe AnalysisDataService for a workspace being replaced")
62 "Observe AnalysisDataService for a workspace being deleted")
66 "Observe AnalysisDataService for it being cleared")
70 "Observe AnalysisDataService for a workspace being renamed")
74 "Observe AnalysisDataService for a group being added/made in the ADS")
75 .def(
"observeUnGroup",
78 "Observe AnalysisDataService for a group being removed from the ADS")
79 .def(
"observeGroupUpdate",
82 "Observe AnalysisDataService for a group being updated by being "
83 "added to or removed from");
boost::mpl::vector< void, AnalysisDataServiceObserver &, bool > ObserverMethodSignature
void export_AnalysisDataServiceObserver()
void(AnalysisDataServiceObserver::*)(bool) ObserverMethod
void observeGroup(bool turnOn=true)
Function will add/remove the observer to the ADS for when a group is added/created in the ADS.
void observeReplace(bool turnOn=true)
Function will add/remove the observer to the ADS for when a workspace is replaced.
void observeAll(bool turnOn=true)
Function will turn on/off all observers for the ADS.
void observeRename(bool turnOn=true)
Function will add/remove the observer to the ADS for when a workspace is renamed.
void observeUnGroup(bool turnOn=true)
Function will add/remove the observer to the ADS for when a group is removed/delete from the ADS.
void observeDelete(bool turnOn=true)
Function will add/remove the observer to the ADS for when a workspace is deleted.
void observeClear(bool turnOn=true)
Function will add/remove the observer to the ADS for when the ADS is cleared.
void observeAdd(bool turnOn=true)
Function will add/remove the observer to the ADS for when a workspace is added to it.
void observeGroupUpdate(bool turnOn=true)
Function will add/remove the observer to the ADS for if a workspace is added to a group or removed.
A wrapper class helping to export AnalysisDataServiceObserver to python.
Defines a structure for releasing the Python GIL using the RAII pattern.