X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMApplication.h;h=244ec736cdebf14e14bca49a850aeebe83c3a366;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=97d3a79e8f4ea69bc1128175d5d5348209ad91c7;hpb=609d8d48cae96384e664ec6b000e8ecfcbad6459;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMApplication.h b/lib/creaDevManagerLib/modelCDMApplication.h index 97d3a79..244ec73 100644 --- a/lib/creaDevManagerLib/modelCDMApplication.h +++ b/lib/creaDevManagerLib/modelCDMApplication.h @@ -44,25 +44,20 @@ 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& 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 = "/" - ); virtual const bool Refresh(std::string*& result); private: - std::string nameApplication; std::string executableName; - std::vector applications; + std::vector folders; }; #endif /* MODELCDMAPPLICATION_H_ */