X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMCMakeListsFile.h;h=5d51e3dcd5008fc5b2970670fcb8667a3d924990;hb=67757af5e4c42450a232987519be5daa2d8b6654;hp=ef66a29d6bc7f4381ea7b7c85f57e58d2cce824b;hpb=58e994c7ddc088821aa0f583354216c6376405c8;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMCMakeListsFile.h b/lib/creaDevManagerLib/modelCDMCMakeListsFile.h index ef66a29..5d51e3d 100644 --- a/lib/creaDevManagerLib/modelCDMCMakeListsFile.h +++ b/lib/creaDevManagerLib/modelCDMCMakeListsFile.h @@ -37,14 +37,40 @@ #include "modelCDMFile.h" +/** + * Class representing the CMakeLists.txt file in a folder of a Crea project. + */ class modelCDMCMakeListsFile : public modelCDMFile { public: + /** + * Default Constructor. + */ modelCDMCMakeListsFile(); - modelCDMCMakeListsFile(const std::string& path, const int& level = 1); + /** + * CMakeLists file Constructor. + * @param parent Parent node of the CMakeLists file node. + * @param path Full path to the CMakeLists file node. + * @param name File name of the CMakeLists file node. + * @param level Project hierarchy level of the CMakeLists file node. + */ + modelCDMCMakeListsFile(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name = "CMakeLists.txt", const int& level = 1); + /** + * Destructor + */ ~modelCDMCMakeListsFile(); + /** + * Opens the file in the system default code editor. + * @param result Result message. + * @return True if the operation was successful. + */ bool OpenFile(std::string*& result); + /** + * Refreshes the state of the CMakeLists file. + * @param result Result message. + * @return True if the operation was successful. + */ virtual const bool Refresh(std::string*& result); };