1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: test_dir_builder.cc
9 Description: Test the directory builder.
10 Created: 08/23/2008 10:39:50 PM PDT
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #include "tree_builder.h"
21 int main(int argc
, char** argv
)
23 vector
<string
> tmp
, file_list
;
24 tree_builder
* builder
= tree_builder::get_instance();;
27 tmp
.push_back(".cpp");
28 fs_item
* tree
= builder
->build(argv
[1], tmp
, &file_list
);
29 for (int i
= 0; i
< file_list
.size(); ++i
) {
30 printf("%s\n", file_list
[i
].c_str());