[go: up one dir, main page]

Menu

[96b3e1]: / filecounter.h  Maximize  Restore  History

Download this file

29 lines (21 with data), 631 Bytes

 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
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2009 Steven Lamerton
// License: GNU GPL 2 (See readme for more info)
/////////////////////////////////////////////////////////////////////////////////
#ifndef H_FILECOUNTER
#define H_FILECOUNTER
#include <wx/arrstr.h>
class FileCounter{
public:
FileCounter();
void AddPath(const wxString &path);
void AddPaths(const wxArrayString &paths);
long GetCount() const;
bool Count();
private:
bool CountFolder(wxString path);
wxArrayString m_Paths;
long m_Count;
};
#endif