+ /**
+ * Returns a directory path of theFileName
+ */
+ GEOMALGOAPI_EXPORT static std::string path(const std::string& theFileName);
+};
+
+/** \class AlgoError
+ * \ingroup DataAlgo
+ * \brief Verify error in MakeShape algorithm.
+ */
+class AlgoError {
+public:
+ /** \brief Verify MakeShape algorithm for failures
+ * \param[in] theAlgorithm object to verify the failure
+ * \param[in] theFeature kind of the feature, the algorithm belongs to
+ * \param[out] theError error string (empty if the feature succeed)
+ * \return \c true if succeed
+ */
+ GEOMALGOAPI_EXPORT static bool isAlgorithmFailed(
+ const std::shared_ptr<GeomAlgoAPI_MakeShape>& theAlgorithm,
+ const std::string& theFeature,
+ std::string& theError);