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
20 class fs_item_dir
: public fs_item
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
*);
31 const std::string name
;
32 std::vector
<fs_item
*> children
;
35 #endif // ----- #ifndef FS_ITEM_DIR_INC -----