Source

pyGAP / game / engine / io / fs / base.h

#ifndef __IO_FS_BASE_H__
#define __IO_FS_BASE_H__


#include <stdint.h>


namespace io { namespace file {
    class Base;
} /* namespace file */

namespace fs {


class Base {
    friend Base* create();

protected:
    Base() {}

public:
    virtual ~Base() {}

    virtual ::io::file::Base* open(const char* filename, const char* mode="rb") const;
    virtual uint8_t* read(const char* filename, const char* mode="rb") const;
    virtual uint8_t* read(const uint32_t& h, const char* mode="rb") const;
};


Base* create();
Base* open(const char* filename);


} /* namespace fs */ } /* namespace io */


#endif