#include <ModelAPI_Object.h>
#include <ModelAPI_PluginManager.h>
+#ifdef _DEBUG
+#include <QDebug>
+#endif
+
/*!
\brief Constructor
\param XGUI_Workshop - workshop for this operation
myExecStatus(Rejected),
myOperationId(theId)
{
- myFeature = ModelAPI_PluginManager::get()->createFeature(theId.toStdString());
}
/*!
*/
void ModuleBase_Operation::storeReal(double theValue)
{
+ if(!myFeature){
+ #ifdef _DEBUG
+ qDebug() << "ModuleBase_Operation::storeReal: " <<
+ "trying to store value without opening a transaction.";
+ #endif
+ return;
+ }
QString anId = sender()->objectName();
std::shared_ptr<ModelAPI_Object> aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeDouble> aReal = aData->real(anId.toStdString());
*/
void ModuleBase_Operation::startOperation()
{
+ myFeature = ModelAPI_PluginManager::get()->createFeature(myOperationId.toStdString());
//emit callSlot();
//commit();
}