Attacher: Py: create AttachEnginePy

Not very useful at the moment, just created the interface.
This commit is contained in:
DeepSOIC
2016-05-07 14:13:40 +03:00
parent 41bae90d28
commit 7e38a59bac
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#include "PreCompiled.h"
#include "Mod/Part/App/Attacher.h"
#include "OCCError.h"
// inclusion of the generated files (generated out of AttachableObjectPy.xml)
#include "AttachEnginePy.h"
#include "AttachEnginePy.cpp"
using namespace Attacher;
// returns a string which represents the object e.g. when printed in python
std::string AttachEnginePy::representation(void) const
{
return std::string("<Attacher::AttachEngine>");
}
Py::String AttachEnginePy::getAttacherType(void) const
{
return Py::String(std::string(this->getAttachEnginePtr()->getTypeId().getName()));
}
PyObject* AttachEnginePy::getCustomAttributes(const char*) const
{
return 0;
}
int AttachEnginePy::setCustomAttributes(const char*,PyObject*)
{
return 0;
}