modelCDMPackage::modelCDMPackage(const std::string& path, const std::string& name, const int& level)
{
+ std::cout << "creating package: " + path + "\n";
this->type = wxDIR_DIRS;
this->name = name;
//Get Package Name
}
modelCDMBlackBox* modelCDMPackage::CreateBlackBox(
+ std::string*& result,
const std::string& name,
const std::string& type,
const std::string& format,
+ const std::string& categories,
const std::string& authors,
const std::string& authorsEmail,
- const std::string& categories,
const std::string& description
)
{
- //TODO: implement method
- return NULL;
+ return this->src->CreateBlackBox(result,name, this->namePackage, type,format,categories,authors,authorsEmail,description);
}
const bool modelCDMPackage::Refresh(std::string*& result)
{
- std::cout << "refreshing package" << std::endl;
+ std::cout << "refreshing package " << this->namePackage << std::endl;
this->type = wxDIR_DIRS;
//Get Package Name
//check if folder already exist
bool found = false;
- for (int i = 0;!found && i < this->children.size(); i++)
+ for (int i = 0; !found && i < this->children.size(); i++)
{
if (this->children[i]->GetName() == stdfileName)
{
else
{
bool found = false;
- for (int i = 0; i <!found && this->children.size(); i++)
+ for (int i = 0; !found && i < this->children.size(); i++)
{
if (this->children[i]->GetName() == stdfileName)
{