w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11VirtDiskOver.hpp
Go to the documentation of this file.
1// $Id: Rw11VirtDiskOver.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2017- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-06-05 907 1.0.2 more detailed stats
8// 2017-04-07 868 1.0.1 Dump(): add detail arg
9// 2017-03-10 859 1.0 Initial version
10// ---------------------------------------------------------------------------
11
12
17#ifndef included_Retro_Rw11VirtDiskOver
18#define included_Retro_Rw11VirtDiskOver 1
19
20#include <map>
21
23
24#include "Rw11VirtDiskFile.hpp"
25
26namespace Retro {
27
29 public:
30
31 typedef std::map<uint32_t,Rw11VirtDiskBuffer> bmap_t;
32
33 explicit Rw11VirtDiskOver(Rw11Unit* punit);
35
36 virtual bool WProt() const;
37
38 virtual bool Open(const std::string& url, RerrMsg& emsg);
39
40 virtual bool Read(size_t lba, size_t nblk, uint8_t* data,
41 RerrMsg& emsg);
42 virtual bool Write(size_t lba, size_t nblk, const uint8_t* data,
43 RerrMsg& emsg);
44
45 bool Flush(RerrMsg& emsg);
46 void List(std::ostream& os) const;
47
48 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
49 int detail=0) const;
50
51 // statistics counter indices (now new)
52 enum stats {
61 };
62
63 protected:
65 };
66
67} // end namespace Retro
68
69//#include "Rw11VirtDiskOver.ipp"
70
71#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: Rw11Unit.hpp:39
virtual bool Open(const std::string &url, RerrMsg &emsg)
FIXME_docs.
virtual bool WProt() const
FIXME_docs.
virtual bool Write(size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
FIXME_docs.
std::map< uint32_t, Rw11VirtDiskBuffer > bmap_t
void List(std::ostream &os) const
FIXME_docs.
bool Flush(RerrMsg &emsg)
FIXME_docs.
virtual bool Read(size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47