Attacher: Py: create AttachEnginePy
Not very useful at the moment, just created the interface.
This commit is contained in:
33
src/Mod/Part/App/AttachEnginePyImp.cpp
Normal file
33
src/Mod/Part/App/AttachEnginePyImp.cpp
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user