14#include <boost/python/register_ptr_to_python.hpp>
53 register_ptr_to_python<PropertyManager_wptr>();
56 auto pmdType = PMDExporter::define(
"PropertyManagerDataServiceImpl");
60 "Return a reference to the singleton instance")
61 .staticmethod(
"Instance")
63 .def(
"add", &addFromDict)
64 .def(
"addOrReplace", &addOrReplaceFromDict);
#define GET_POINTER_SPECIALIZATION(TYPE)
void export_PropertyManagerDataService()
std::weak_ptr< PropertyManager > PropertyManager_wptr
Weak pointer to DataItem typedef.
virtual void add(const std::string &name, const std::shared_ptr< T > &Tobject)
Add an object to the service.
virtual void addOrReplace(const std::string &name, const std::shared_ptr< T > &Tobject)
Add or replace an object to the service.
PropertyManagerDataService Class.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
MANTID_KERNEL_DLL PropertyManager_sptr createPropertyManager(const Json::Value &keyValues)
Attempt to create a PropertyManager from the Json::Value.
std::shared_ptr< Kernel::PropertyManager > createPropertyManager(const boost::python::dict &mapping)
Create a C++ PropertyMananager from a Python dictionary.
A helper struct to export templated DataService<> types to Python.