-// Copyright (C) 2006-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include "PyStdout.hxx"
#include "ExecutorSwig.hxx"
#include <sstream>
+#include "Catalog.hxx"
%}
// ----------------------------------------------------------------------------
// becomes a real derived class, this will have to be changed.
%rename(OptimizerAlgSync) YACS::ENGINE::PyOptimizerAlgBase;
%rename(OptimizerAlgASync) YACS::ENGINE::PyOptimizerAlgASync;
+
%include "PyOptimizerAlg.hxx"
+%newobject YACS::ENGINE::RuntimeSALOME::createAnyPyObject;
+
%extend YACS::ENGINE::RuntimeSALOME
{
PyObject *createContainer(const std::string& kind="")
YACS::ENGINE::Container *ret(self->createContainer(kind));
return convertContainer2(ret,SWIG_POINTER_OWN | 0);
}
+
+ Any* createAnyPyObject(PyObject * pyobj)
+ {
+ return convertPyObjectNeutral(self->getBuiltinCatalog()->_typeMap["pyobj"],
+ pyobj);
+ }
}