]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Tools.h
Salome HOME
Store information about user-defined names in the data model.
[modules/shaper.git] / src / ModelAPI / ModelAPI_Tools.h
index 1a2db5e05b2ecc979215b76d11979e245c3f2ba4..e7c297b30840755b4e7fb3692acb853ec69c70f5 100755 (executable)
@@ -188,9 +188,12 @@ MODELAPI_EXPORT void getConcealedResults(const std::shared_ptr<ModelAPI_Feature>
                                    std::list<std::shared_ptr<ModelAPI_Result> >& theResults);
 
 /*! Return the default name of the result according the the features it depends.
+ *  Return also whether the name is get from the concealing result of parent object
+ *  (means that concealing result has user-defined name).
  */
-MODELAPI_EXPORT std::string getDefaultName(const std::shared_ptr<ModelAPI_Result>& theResult,
-                                           const int theResultIndex);
+MODELAPI_EXPORT std::pair<std::string, bool> getDefaultName(
+    const std::shared_ptr<ModelAPI_Result>& theResult,
+    const int theResultIndex);
 }
 
 #endif