X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMAppli.h;h=c3bce223b4798b2dc0a6c4c9efc22ca656783ca5;hb=9f11db34cb1acacf545f819d6b552a95835d93bd;hp=579f12a2105e859710a5898c6e6cda0b783466ce;hpb=af76296378f6fc398f0f6f516506d19019ff8287;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMAppli.h b/lib/creaDevManagerLib/modelCDMAppli.h index 579f12a..c3bce22 100644 --- a/lib/creaDevManagerLib/modelCDMAppli.h +++ b/lib/creaDevManagerLib/modelCDMAppli.h @@ -72,7 +72,7 @@ public: const std::vector& 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& 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.