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.
* @return Reference to the created application or NULL.
*/
modelCDMApplication* CreateApplication(
const std::string& name,
+ const int& type,
std::string*& result
);
/**
*/
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.