Last change
on this file since 1537 was 1536, checked in by sjboddie, 24 years ago |
Changes to get compiling on VC++ and gcc
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
761 bytes
|
Line | |
---|
1 | #ifndef _FILE_H_
|
---|
2 | #include <vector>
|
---|
3 | #include <string>
|
---|
4 | using namespace std;
|
---|
5 |
|
---|
6 | #include "DiskSpace.h"
|
---|
7 |
|
---|
8 | class File
|
---|
9 | {
|
---|
10 | private:
|
---|
11 | string name;
|
---|
12 | unsigned long size;
|
---|
13 | vector<File> children;
|
---|
14 | bool is_dir;
|
---|
15 | bool does_exist;
|
---|
16 | bool is_writable;
|
---|
17 |
|
---|
18 | void _getDetails();
|
---|
19 | void getChildren();
|
---|
20 | protected:
|
---|
21 | public:
|
---|
22 | File();
|
---|
23 | File(string filename, unsigned long filesize);
|
---|
24 | File(string filename);
|
---|
25 | void copy(char *destination);
|
---|
26 | bool isDirectory();
|
---|
27 | bool isWriteable();
|
---|
28 | bool exists();
|
---|
29 | unsigned long getRawFileSize();
|
---|
30 | unsigned long getFileSize();
|
---|
31 | const char *getFileName();
|
---|
32 | unsigned long getDiskSpace(DiskSpace &diskSpace);
|
---|
33 | vector<File>::iterator childBegin();
|
---|
34 | vector<File>::iterator childEnd();
|
---|
35 | };
|
---|
36 |
|
---|
37 | typedef vector<File> FileVector;
|
---|
38 | #define _FILE_H_
|
---|
39 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.