]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMAppli.h
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / modelCDMAppli.h
index 579f12a2105e859710a5898c6e6cda0b783466ce..c3bce223b4798b2dc0a6c4c9efc22ca656783ca5 100644 (file)
@@ -72,7 +72,7 @@ public:
   const std::vector<modelCDMApplication*>& GetApplications() const;
 
   /**
-   * Creates a new application in the system and creates an application node. This node is stored in the applications attribute and returned.
+   * Creates a new application in the system and creates an application node. This node is stored in the applications attribute and returned. The created application is included in the appli's CMakeLists file.
    * @param name Name of the new application.
    * @param type 0=console application, 1=GUI Application (wxWidgets).
    * @param result Result message of the operation.
@@ -96,6 +96,21 @@ public:
    */
   void CheckStructure(std::map<std::string, bool>& properties);
 
+  /**
+   * Checks if the given application is included in the CMakeLists file.
+   * @param application_name Name of the library to check.
+   * @return True if the library is included, otherwise returns False.
+   */
+  bool IsApplicationIncluded(const std::string& application_name);
+
+  /**
+   * Sets the inclusion of the application in the lib's CMakeLists file. If the application inclusion already exist in file, then the line is uncommented/commented depending on the requested action. If the application inclusion doesn't exist yet, then it is included if the request is an inclusion.
+   * @param application_name Name of the application to include/exclude.
+   * @param toInclude True if the request is an inclusion, False otherwise.
+   * @return True if the request was processed successfully.
+   */
+  bool SetApplicationInclude(const std::string& application_name, const bool& toInclude);
+
 private:
   /**
    * application in the appli folder node.