]> Creatis software - crea.git/blob - lib/creaDevManagerLib/modelCDMProjectsTreeNode.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMProjectsTreeNode.h
1 /*
2  * modelCDMProjectsTreeNode.h
3  *
4  *  Created on: 22/10/2012
5  *      Author: daniel
6  */
7
8 #ifndef MODELCDMPROJECTSTREENODE_H_
9 #define MODELCDMPROJECTSTREENODE_H_
10
11 #include <iostream>
12 #include <vector>
13
14 class modelCDMProjectsTreeNode
15 {
16 public:
17   modelCDMProjectsTreeNode();
18   modelCDMProjectsTreeNode(std::string path, std::string name, unsigned char type, int level);
19   ~modelCDMProjectsTreeNode();
20
21   const std::string& GetPath() const;
22   const std::string& GetName() const;
23   const unsigned char& GetType() const;
24   const int& GetLevel() const;
25   const std::vector<modelCDMProjectsTreeNode>& GetChildren() const;
26
27   void SetChildren(std::vector<modelCDMProjectsTreeNode>& children);
28
29
30 private:
31   std::string _path;
32   std::string _name;
33   unsigned char _type;
34   int _level;
35   std::vector<modelCDMProjectsTreeNode> _children;
36
37 };
38
39 #endif /* MODELCDMPROJECTSTREENODE_H_ */