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
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
*);
30 const std::string name
;
31 std::vector
<fs_item
*> children
;
34 #endif // ----- #ifndef FS_ITEM_DIR_INC -----