]> Creatis software - crea.git/blob - lib/creaDevManagerLib/ModelCreaDevManagerTreeNode.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / ModelCreaDevManagerTreeNode.cpp
1 /*
2  * ModelCreaDevManagerTreeNode.cpp
3  *
4  *  Created on: 22/10/2012
5  *      Author: daniel
6  */
7
8 #include "ModelCreaDevManagerTreeNode.h"
9
10 ModelCreaDevManagerTreeNode::ModelCreaDevManagerTreeNode(std::string path, std::string name, unsigned char type, int level)
11 {
12   this->_path = path;
13   this->_name = name;
14   this->_type = type;
15   this->_level = level;
16 }
17
18 ModelCreaDevManagerTreeNode::~ModelCreaDevManagerTreeNode()
19 {
20 }
21
22 const std::string& ModelCreaDevManagerTreeNode::GetPath() const
23 {
24   return this->_path;
25 }
26
27 const std::string& ModelCreaDevManagerTreeNode::GetName() const
28 {
29   return this->_name;
30 }
31 const unsigned char& ModelCreaDevManagerTreeNode::GetType() const
32 {
33   return this->_type;
34 }
35
36 const int& ModelCreaDevManagerTreeNode::GetLevel() const
37 {
38   return this->_level;
39 }
40
41 const std::vector<ModelCreaDevManagerTreeNode>& ModelCreaDevManagerTreeNode::GetChildren() const
42 {
43   return this->_children;
44 }
45
46
47 void ModelCreaDevManagerTreeNode::SetChildren(std::vector<ModelCreaDevManagerTreeNode>& children)
48 {
49   this->_children.clear();
50   this->_children = children;
51 }