2 * ModuleBase_OperationDescription.cpp
4 * Created on: Apr 2, 2014
8 #include <ModuleBase_OperationDescription.h>
11 ModuleBase_OperationDescription::ModuleBase_OperationDescription(const QString& theId)
12 : myOperationId(theId)
16 ModuleBase_OperationDescription::~ModuleBase_OperationDescription()
20 const QString& ModuleBase_OperationDescription::operationId() const
25 const QString& ModuleBase_OperationDescription::description() const
30 void ModuleBase_OperationDescription::setDescription(const QString& theDescription)
32 myDescription = theDescription;
35 /*void ModuleBase_OperationDescription::setModelWidgets(const std::string& theXmlRepresentation,
36 const QList<ModuleBase_ModelWidget*>& theWidgets)
39 QList<ModuleBase_ModelWidget*>::const_iterator anIt = theWidgets.begin(), aLast = theWidgets.end();
40 for (; anIt != aLast; anIt++)
41 myWidgets.push_back(*anIt);
42 myXmlRepresentation = theXmlRepresentation;
45 /*const QList<ModuleBase_ModelWidget*>& ModuleBase_OperationDescription::modelWidgets() const
50 const QString& ModuleBase_OperationDescription::xmlRepresentation() const
52 return myXmlRepresentation;
55 void ModuleBase_OperationDescription::setXmlRepresentation(const QString& theXMLRepresentation)
57 myXmlRepresentation = theXMLRepresentation;
60 bool ModuleBase_OperationDescription::hasXmlRepresentation() const
62 return /*!myWidgets.empty() || */!myXmlRepresentation.isEmpty();