source: trunk/gsinstaller/file.h@ 1537

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>
4using namespace std;
5
6#include "DiskSpace.h"
7
8class File
9{
10private:
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();
20protected:
21public:
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
37typedef vector<File> FileVector;
38#define _FILE_H_
39#endif
Note: See TracBrowser for help on using the repository browser.