mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-04-28 13:24:32 +00:00
34 lines
795 B
C++
34 lines
795 B
C++
#ifndef INTERNALFILE_H
|
|
#define INTERNALFILE_H
|
|
|
|
#include "macho_global.h"
|
|
#include <boost/filesystem.hpp>
|
|
#include <boost/filesystem/fstream.hpp>
|
|
|
|
class InternalFile
|
|
{
|
|
|
|
public:
|
|
static InternalFile* create(InternalFile* file);
|
|
static InternalFile* create(const string& filename);
|
|
void release();
|
|
|
|
string getPath() const;
|
|
string getName() const;
|
|
string getTitle() const;
|
|
long long int getSize() const;
|
|
bool seek(long long int position);
|
|
streamsize read(char* buffer, streamsize size);
|
|
long long int getPosition();
|
|
time_t getLastModificationTime() const;
|
|
|
|
private:
|
|
unsigned int counter;
|
|
virtual ~InternalFile();
|
|
InternalFile(const string& filename);
|
|
boost::filesystem::ifstream file;
|
|
boost::filesystem::path filename;
|
|
};
|
|
|
|
#endif // INTERNALFILE_H
|