X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMPackage.h;h=471dbb35f6836e5d0f9e06a276d47375b8aeb813;hb=2fb5dd9262993efaf56bfc731f4297fdb96bf63e;hp=e18031a44d21775a4a592f58bfb812261843673a;hpb=58e994c7ddc088821aa0f583354216c6376405c8;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMPackage.h b/lib/creaDevManagerLib/modelCDMPackage.h index e18031a..471dbb3 100644 --- a/lib/creaDevManagerLib/modelCDMPackage.h +++ b/lib/creaDevManagerLib/modelCDMPackage.h @@ -37,15 +37,16 @@ #include #include +#include #include"modelCDMFolder.h" -#include"modelCDMBlackBox.h" +#include"modelCDMPackageSrc.h" class modelCDMPackage : public modelCDMFolder { public: modelCDMPackage(); - modelCDMPackage(const std::string& path, const int& level = 1); + modelCDMPackage(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level = 1); ~modelCDMPackage(); const std::string& GetNamePackage() const; @@ -53,6 +54,7 @@ public: const std::string& GetAuthorsEmail() const; const std::string& GetVersion() const; const std::string& GetDescription() const; + modelCDMPackageSrc* GetSrc() const; bool SetAuthors(const std::string& authors, std::string*& result); bool SetAuthorsEmail(const std::string& email, std::string*& result); @@ -60,23 +62,27 @@ public: bool SetDescription(const std::string& description, std::string*& result); - bool CreateBlackBox( + modelCDMBlackBox* CreateBlackBox( + std::string*& result, const std::string& name, + const std::string& type = "std", + const std::string& format = "C++", + const std::string& categories = "empty", const std::string& authors = "unknown", const std::string& authorsEmail = "", - const std::string& categories = "empty", const std::string& description = "no description" ); - bool OpenCMakeListsFile(std::string*& result); virtual const bool Refresh(std::string*& result); + void CheckStructure(std::map& properties); + private: std::string namePackage; std::string authors; std::string authorsEmail; std::string version; std::string description; - std::vector blackBoxes; + modelCDMPackageSrc* src; };