X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMFolder.h;h=07565009b1e5b3bf01bb0ba14b4d1da608312dfd;hb=752294dd30e2ee94f38be513d441f4716509ce13;hp=f1ead308e42b2be68295c5cb5924e7c2744284bc;hpb=58e994c7ddc088821aa0f583354216c6376405c8;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMFolder.h b/lib/creaDevManagerLib/modelCDMFolder.h index f1ead30..0756500 100644 --- a/lib/creaDevManagerLib/modelCDMFolder.h +++ b/lib/creaDevManagerLib/modelCDMFolder.h @@ -39,24 +39,34 @@ #include #include "modelCDMIProjectTreeNode.h" +#include "modelCDMCMakeListsFile.h" class modelCDMFolder : public modelCDMIProjectTreeNode { public: modelCDMFolder(); - modelCDMFolder(const std::string& path, const int& level = 3); + modelCDMFolder(const std::string& path, const std::string& name, const int& level = 3); ~modelCDMFolder(); - bool CreateFolder( + modelCDMCMakeListsFile* GetCMakeLists() const; + std::vector GetFolders() const; + + bool CreateClass(const std::string& name); + + modelCDMFolder* CreateFolder( const std::string& name, - std::string*& result, - const std::string& path = "/" + std::string*& result ); bool OpenCMakeListsFile(std::string* & result); virtual const bool Refresh(std::string*& result); + bool HasCMakeLists(); + +protected: + modelCDMCMakeListsFile* CMakeLists; private: std::vector folders; + }; #endif /* MODELCDMFOLDER_H_ */