]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_FeatureReader.cpp
Salome HOME
Task 2.1. Management of result names
[modules/shaper.git] / src / Config / Config_FeatureReader.cpp
index 71261ba95849971d0085bd12d102cdb38b42d0db..6115d715f7f76d90593e8bc51bebbc8492b78e3d 100644 (file)
@@ -84,7 +84,10 @@ void Config_FeatureReader::processNode(xmlNodePtr theNode)
       if (!anAttributeID.empty()) {
         aMessage->setAttributeId(anAttributeID);
         aMessage->setObligatory(getBooleanAttribute(theNode, ATTR_OBLIGATORY, true));
-        aMessage->setConcealment(getBooleanAttribute(theNode, ATTR_CONCEALMENT, false));
+        bool isConcealment = getBooleanAttribute(theNode, ATTR_CONCEALMENT, false);
+        aMessage->setConcealment(isConcealment);
+        bool isMainArg = isConcealment && getBooleanAttribute(theNode, ATTR_MAIN_ARG, false);
+        aMessage->setMainArgument(isMainArg);
 
         std::list<std::pair<std::string, std::string> > aCases;
         xmlNodePtr aCaseNode =