X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMApplication.h;h=244ec736cdebf14e14bca49a850aeebe83c3a366;hb=752294dd30e2ee94f38be513d441f4716509ce13;hp=a878c35d75ff1a0198276ef3f9f70cf2b6b88680;hpb=e2223b619fa37daaf6103b34b39e789efc1a0b94;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMApplication.h b/lib/creaDevManagerLib/modelCDMApplication.h index a878c35..244ec73 100644 --- a/lib/creaDevManagerLib/modelCDMApplication.h +++ b/lib/creaDevManagerLib/modelCDMApplication.h @@ -38,31 +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 std::string& name, const int& level = 2); ~modelCDMApplication(); - const std::string& GetName() 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); - bool CreateFolder( - const std::string& name, - std::string*& result, - const std::string& path = "/" - ); - bool OpenCMakeListsFile(std::string* & result); - bool Refresh(std::string*& result); + modelCDMFolder* CreateFolder(const std::string& name, std::string*& result); + + virtual const bool Refresh(std::string*& result); private: - std::string name; - std::string mainFile; - std::vector applications; + std::string executableName; + std::vector folders; }; #endif /* MODELCDMAPPLICATION_H_ */