return returnValue;
}
-const wxTreeItemId& modelCDMIProjectTreeNode::GetId() const
+const wxCDMTreeItemId& modelCDMIProjectTreeNode::GetId() const
{
return this->id;
}
return this->level;
}
+modelCDMIProjectTreeNode* modelCDMIProjectTreeNode::GetParent() const
+{
+ return this->parent;
+}
+
+std::vector<modelCDMIProjectTreeNode*> modelCDMIProjectTreeNode::GetParents() const
+{
+ std::vector<modelCDMIProjectTreeNode*> family;
+ modelCDMIProjectTreeNode* someFamily = this->parent;
+ while(someFamily != NULL)
+ {
+ family.push_back(someFamily);
+ someFamily = someFamily->GetParent();
+ }
+ return family;
+
+}
+
const std::vector<modelCDMIProjectTreeNode*>& modelCDMIProjectTreeNode::GetChildren() const
{
return this->children;
}
-void modelCDMIProjectTreeNode::SetId(const wxTreeItemId& id)
+void modelCDMIProjectTreeNode::SetId(const wxCDMTreeItemId& id)
{
this->id = id;
}