summaryrefslogtreecommitdiff
path: root/includes/MMap.h
blob: b43f9e109c2fbfa7683bce275043bc5fc72c3eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <Buffer.h>

namespace Balau {

class MMapPlatform;

class MMap : public Buffer {
  public:
      MMap(const char * fname);
      virtual ~MMap() override;
    void open() throw (GeneralException);
    virtual const char * getName() override { return m_name.to_charp(); }
    virtual void close() throw (GeneralException) override;
  private:
    MMapPlatform * m_platform = NULL;
    String m_name;
    String m_fname;
};

};