#ifndef _FILE_H_ #include #include // use the standard namespace #if !defined (GSDL_NAMESPACE_BROKEN) #if defined(GSDL_USE_OBJECTSPACE) using namespace ospace::std; #else using namespace std; #endif #endif #include "DiskSpace.h" #include "FilePath.h" class File : public FilePath { private: string name; unsigned long size; vector children; bool is_dir; bool does_exist; bool is_writable; void _getDetails(); void getChildren(); protected: public: File(); File(string filename); void copy(char *destination); bool remove(); bool isDirectory(); bool isWriteable(); bool exists(); unsigned long getRawFileSize(); void getFileSize(unsigned long &dataSize, unsigned long &dataFiles); unsigned long getFileSize(); // const char *cString(); unsigned long getDiskSpace(DiskSpace &diskSpace); vector::iterator childBegin(); vector::iterator childEnd(); }; typedef vector FileVector; #define _FILE_H_ #endif