00001 #ifndef FOLDER_H
00002 #define FOLDER_H
00003
00004 #include "Node.hpp"
00005
00006 #include <string>
00007 #include <vector>
00008
00012 class Folder: public Node {
00013 public:
00018 Folder();
00019
00024 Folder(const string& id, const string& path, const string& title,
00025 const string& desc, const string& add_date);
00026
00030 Folder(const Folder& n);
00031
00035 void addChild(Node* child);
00036
00040 Node* getChild(const string& title);
00041
00046 void removeChild(const Node* child);
00047
00052 vector<Node*>& getChildren();
00053
00058 void empty();
00059
00060 private:
00064 vector<Node*> _children;
00065 };
00066
00067 #endif