]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.h
diff --git a/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h b/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h
new file mode 100644 (file)
index 0000000..e48b8c7
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * modelCDMIProjectTreeNode.h
+ *
+ *  Created on: 13/11/2012
+ *      Author: daniel
+ */
+
+#ifndef MODELCDMIPROJECTTREENODE_H_
+#define MODELCDMIPROJECTTREENODE_H_
+
+#include <iostream>
+#include <vector>
+
+class modelCDMIProjectTreeNode
+{
+public:
+  virtual ~modelCDMIProjectTreeNode(){}
+
+  const std::string& GetPath() const
+  {
+    return this->path;
+  }
+  const std::string& GetName() const
+  {
+    return this->name;
+  }
+  const unsigned char& GetType() const
+  {
+    return this->type;
+  }
+  const int& GetLevel() const
+  {
+    return this->level;
+  }
+  const std::vector<modelCDMIProjectTreeNode>& GetChildren() const
+  {
+    return this->children;
+  }
+  void SetChildren(std::vector<modelCDMIProjectTreeNode>& children)
+  {
+    this->children.clear();
+    this->children = children;
+  }
+protected:
+  std::string path;
+  std::string name;
+  unsigned char type;
+  int level;
+  std::vector<modelCDMIProjectTreeNode> children;
+};
+
+
+#endif /* MODELCDMIPROJECTTREENODE_H_ */