source: trunk/gsinstaller/file.h@ 1539

Last change on this file since 1539 was 1539, checked in by sjboddie, 24 years ago

Got compiling on VC++ 4.2

  • Property svn:keywords set to Author Date Id Revision
File size: 912 bytes
Line 
1#ifndef _FILE_H_
2#include <vector>
3#include <string>
4
5// use the standard namespace
6#if !defined (GSDL_NAMESPACE_BROKEN)
7#if defined(GSDL_USE_OBJECTSPACE)
8using namespace ospace::std;
9#else
10using namespace std;
11#endif
12#endif
13
14#include "DiskSpace.h"
15
16class File
17{
18private:
19 string name;
20 unsigned long size;
21 vector<File> children;
22 bool is_dir;
23 bool does_exist;
24 bool is_writable;
25
26 void _getDetails();
27 void getChildren();
28protected:
29public:
30 File();
31 File(string filename, unsigned long filesize);
32 File(string filename);
33 void copy(char *destination);
34 bool isDirectory();
35 bool isWriteable();
36 bool exists();
37 unsigned long getRawFileSize();
38 unsigned long getFileSize();
39 const char *getFileName();
40 unsigned long getDiskSpace(DiskSpace &diskSpace);
41 vector<File>::iterator childBegin();
42 vector<File>::iterator childEnd();
43};
44
45typedef vector<File> FileVector;
46#define _FILE_H_
47#endif
Note: See TracBrowser for help on using the repository browser.