forked from vayerx/shadowgrounds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file_list.h
38 lines (27 loc) · 819 Bytes
/
file_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2002-2004 Frozenbyte Ltd.
#ifndef INCLUDED_FILESYSTEM_FILE_LIST_H
#define INCLUDED_FILESYSTEM_FILE_LIST_H
#include "ifile_list.h"
#include <boost/scoped_ptr.hpp>
#include <vector>
#include <string>
namespace frozenbyte {
namespace filesystem {
class FileList: public IFileList
{
struct Data;
boost::scoped_ptr<Data> data;
public:
FileList();
~FileList();
void setCaseSensitivity(bool enable);
void addDir(const std::string &dir);
void addFile(const std::string &file);
int getDirAmount(const std::string &root) const;
std::string getDirName(const std::string &root, int index) const;
int getFileAmount(const std::string &root) const;
const std::string &getFileName(const std::string &root, int index) const;
};
} // end of namespace filesystem
} // end of namespace frozenbyte
#endif