1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
10 #include <ModelAPI_Feature.h>
15 \brief Return directory part of the file path.
17 If the file path does not include directory part (the file is in the
18 current directory), null string is returned.
21 \param abs if true (default) \a path parameter is treated as absolute file path
22 \return directory part of the file path
24 namespace XGUI_Tools {
25 QString XGUI_EXPORT dir(const QString& path, bool isAbs = true);
28 \brief Return file name part of the file path.
31 \param withExt if true (default) complete file name (with all
32 extension except the last) is returned, otherwise only base name
34 \return file name part of the file path
36 QString XGUI_EXPORT file(const QString& path, bool withExt = true);
39 \brief Add a slash (platform-specific) to the end of \a path
40 if it is not already there.
41 \param path directory path
42 \return modified path (with slash added to the end)
44 QString XGUI_EXPORT addSlash(const QString& path);
46 /// The model concerning tools
49 Returns true if the feature is a model object
50 \param theFeature a feature
52 bool XGUI_EXPORT isModelObject(FeaturePtr theFeature);
55 Returns the string presentation of the given feature
56 \param theFeature a feature
58 std::string XGUI_EXPORT featureInfo(FeaturePtr theFeature);