1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * ModuleBase_OperationDescription.cpp
6 * Created on: Apr 2, 2014
10 #include <ModuleBase_OperationDescription.h>
13 ModuleBase_OperationDescription::ModuleBase_OperationDescription(const QString& theId)
14 : myOperationId(theId)
18 ModuleBase_OperationDescription::~ModuleBase_OperationDescription()
22 const QString& ModuleBase_OperationDescription::operationId() const
27 const QString& ModuleBase_OperationDescription::description() const
32 void ModuleBase_OperationDescription::setDescription(const QString& theDescription)
34 myDescription = theDescription;
37 /*void ModuleBase_OperationDescription::setModelWidgets(const std::string& theXmlRepresentation,
38 const QList<ModuleBase_ModelWidget*>& theWidgets)
41 QList<ModuleBase_ModelWidget*>::const_iterator anIt = theWidgets.begin(), aLast = theWidgets.end();
42 for (; anIt != aLast; anIt++)
43 myWidgets.push_back(*anIt);
44 myXmlRepresentation = theXmlRepresentation;
47 /*const QList<ModuleBase_ModelWidget*>& ModuleBase_OperationDescription::modelWidgets() const
52 const QString& ModuleBase_OperationDescription::xmlRepresentation() const
54 return myXmlRepresentation;
57 void ModuleBase_OperationDescription::setXmlRepresentation(const QString& theXMLRepresentation)
59 myXmlRepresentation = theXMLRepresentation;
62 bool ModuleBase_OperationDescription::hasXmlRepresentation() const
64 return /*!myWidgets.empty() || */!myXmlRepresentation.isEmpty();