Added the directory file system item
[vimicxx.git] / src / fs / fs_item_dir.h
blob1e52813486b3d11c3b5fbee96f68c919c70227d7
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 class fs_item_dir
21 public:
22 fs_item_dir(const std::string& name_);
23 const std::string get_name() const;
24 fs_item::FS_ItemType std::string get_type() const;
25 const fs_item* get_parent() const;
26 const std::vector<const fs_item*> get_children() const;
27 void add_child(fs_item*);
28 ~fs_item_dir();
29 private:
30 const std::string name;
31 std::vector<fs_item*> children;
34 #endif // ----- #ifndef FS_ITEM_DIR_INC -----