Logo Search packages:      
Sourcecode: r-cran-genabel version File versions  Download package

RealHandlerWrapper.h

#ifndef __RealHandlerWrapper__
#define __RealHandlerWrapper__

class ReusableFileHandle; 

#include <string>
#include <map>
#include <fstream>
#include <iostream>

using namespace std;

00013 class RealHandlerWrapper {
private:
    int useCount;
    fstream stream;
    string fileName;
    
    bool readOnly;

public:
    RealHandlerWrapper(): useCount(0) {}

    void blockWriteOrRead(unsigned long length, char* data, bool writeAction);
    void fseek(unsigned long pos);
    void flush();
    bool open(const string &fileName, bool readOnly);
    void close();

    int getUseCount() {return useCount;}
};

#endif

Generated by  Doxygen 1.6.0   Back to index