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