X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Tools.h;h=bb0c28f2b3faf961a3b6ab1a97826f7a46b9e385;hb=6e511a39b3b982757b90b73a7cfc4a1139ebc83c;hp=f17efdc3b735b1040812bb1872adab95d602ebb2;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Tools.h b/src/GeomAlgoAPI/GeomAlgoAPI_Tools.h index f17efdc3b..bb0c28f2b 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Tools.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Tools.h @@ -23,8 +23,11 @@ #include +#include #include +class GeomAlgoAPI_MakeShape; + namespace GeomAlgoAPI_Tools { /** \class Localizer @@ -56,6 +59,24 @@ public: GEOMALGOAPI_EXPORT static std::string name(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& theAlgorithm, + const std::string& theFeature, + std::string& theError); +}; + } // GeomAlgoAPI_Tools #endif /* GEOMALGOAPI_TOOLS_H_ */