X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FmodelCDMLibrary.h;h=728b5c93970703cccb7b833a1e85924dc5943914;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=64ae1f863265189cc2d34d462dc141431041d144;hpb=e2223b619fa37daaf6103b34b39e789efc1a0b94;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMLibrary.h b/lib/creaDevManagerLib/modelCDMLibrary.h index 64ae1f8..728b5c9 100644 --- a/lib/creaDevManagerLib/modelCDMLibrary.h +++ b/lib/creaDevManagerLib/modelCDMLibrary.h @@ -38,27 +38,25 @@ #include #include -#include "modelCDMIProjectTreeNode.h" +#include "modelCDMFolder.h" -class modelCDMLibrary : public modelCDMIProjectTreeNode +class modelCDMLibrary : public modelCDMFolder { public: modelCDMLibrary(); + modelCDMLibrary(const std::string& path, const std::string& name, const int& level = 2); ~modelCDMLibrary(); - const std::string& GetName() const; + const std::string& GetNameLibrary() const; + bool SetNameLibrary(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::vector libraries; + std::string nameLibrary; + std::vector folders; }; #endif /* MODELCDMLIBRARY_H_ */