X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMApplication.h;h=244ec736cdebf14e14bca49a850aeebe83c3a366;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=a30517d26e727bcbcf09be402e8d9255c7dfbec3;hpb=667f8ae6982afb3a65dc1e1fad8c3aabdf0caf80;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMApplication.h b/lib/creaDevManagerLib/modelCDMApplication.h index a30517d..244ec73 100644 --- a/lib/creaDevManagerLib/modelCDMApplication.h +++ b/lib/creaDevManagerLib/modelCDMApplication.h @@ -38,32 +38,26 @@ #include #include -#include"modelCDMIProjectTreeNode.h" +#include"modelCDMFolder.h" -class modelCDMApplication : public modelCDMIProjectTreeNode +class modelCDMApplication : public modelCDMFolder { public: modelCDMApplication(); - modelCDMApplication(const std::string& path, const int& level = 2); + modelCDMApplication(const std::string& path, const std::string& name, const int& level = 2); ~modelCDMApplication(); - const std::string& GetNameApplication() const; - const std::string& GetMainFile() const; + const std::string& GetExecutableName() const; - void SetMainFile(const std::string& fileName); + bool SetExecutableName(const std::string& fileName, std::string*& result); + + modelCDMFolder* CreateFolder(const std::string& name, std::string*& result); - bool CreateFolder( - const std::string& name, - std::string*& result, - const std::string& path = "/" - ); - bool OpenCMakeListsFile(std::string* & result); virtual const bool Refresh(std::string*& result); private: - std::string nameApplication; - std::string mainFile; - std::vector applications; + std::string executableName; + std::vector folders; }; #endif /* MODELCDMAPPLICATION_H_ */