w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11VirtDiskFile.hpp
Go to the documentation of this file.
1// $Id: Rw11VirtDiskFile.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-06-21 1167 1.1 use RfileFd; remove dtor
8// 2017-04-15 875 1.0.2 Open(): add overload with scheme handling
9// 2017-04-07 868 1.0.1 Dump(): add detail arg
10// 2013-04-14 506 1.0 Initial version
11// 2013-02-13 488 0.1 First draft
12// ---------------------------------------------------------------------------
13
14
19#ifndef included_Retro_Rw11VirtDiskFile
20#define included_Retro_Rw11VirtDiskFile 1
21
22#include "librtools/RfileFd.hpp"
23
24#include "Rw11VirtDisk.hpp"
25
26namespace Retro {
27
29 public:
30
31 explicit Rw11VirtDiskFile(Rw11Unit* punit);
32
33 virtual bool Open(const std::string& url, RerrMsg& emsg);
34 bool Open(const std::string& url, const std::string& scheme,
35 RerrMsg& emsg);
36
37 virtual bool Read(size_t lba, size_t nblk, uint8_t* data,
38 RerrMsg& emsg);
39 virtual bool Write(size_t lba, size_t nblk, const uint8_t* data,
40 RerrMsg& emsg);
41
42 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
43 int detail=0) const;
44
45 // statistics counter indices (now new)
46 enum stats {
48 };
49
50 protected:
52 size_t fSize;
53 };
54
55} // end namespace Retro
56
57//#include "Rw11VirtDiskFile.ipp"
58
59#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: RfileFd.hpp:30
FIXME_docs.
Definition: Rw11Unit.hpp:39
virtual bool Write(size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual bool Read(size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual bool Open(const std::string &url, 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