Completed the cmd_add implementation
[vimicxx.git] / src / fs / fs_item_dir.h
blob5c95529fc7ffb745ef2dc74d13da7db203095d3a
1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: fs_item_dir.h
9 Description: A file system directory item.
10 Created: 08/22/2008 09:08:23 PM PDT
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #ifndef FS_ITEM_DIR_INC
16 #define FS_ITEM_DIR_INC
17 #include <string>
18 #include <vector>
19 #include "fs_item.h"
20 class fs_item_dir: public fs_item
22 public:
23 fs_item_dir(const std::string& name_);
24 const std::string get_name() const;
25 fs_item::FS_ItemType get_type() const;
26 const fs_item* get_parent() const;
27 const std::vector<const fs_item*> get_children() const;
28 void add_child(fs_item*);
29 ~fs_item_dir();
30 private:
31 const std::string name;
32 std::vector<fs_item*> children;
35 #endif // ----- #ifndef FS_ITEM_DIR_INC -----