X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMPackage.h;h=471dbb35f6836e5d0f9e06a276d47375b8aeb813;hb=2fb5dd9262993efaf56bfc731f4297fdb96bf63e;hp=5af92109b50611d289ab2c1f78c324c75633565a;hpb=07de43de26544771a25b4edb25cbbf878bf32de3;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMPackage.h b/lib/creaDevManagerLib/modelCDMPackage.h index 5af9210..471dbb3 100644 --- a/lib/creaDevManagerLib/modelCDMPackage.h +++ b/lib/creaDevManagerLib/modelCDMPackage.h @@ -37,21 +37,24 @@ #include #include +#include -#include"modelCDMIProjectTreeNode.h" -#include"modelCDMBlackBox.h" +#include"modelCDMFolder.h" +#include"modelCDMPackageSrc.h" -class modelCDMPackage : public modelCDMIProjectTreeNode +class modelCDMPackage : public modelCDMFolder { public: modelCDMPackage(); + modelCDMPackage(modelCDMIProjectTreeNode* parent, const std::string& path, const std::string& name, const int& level = 1); ~modelCDMPackage(); - const std::string& GetName() const; + const std::string& GetNamePackage() const; const std::string& GetAuthors() const; 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); @@ -59,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 name; + std::string namePackage; std::string authors; std::string authorsEmail; std::string version; std::string description; - std::vector applications; + modelCDMPackageSrc* src; };