w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitStream.hpp
Go to the documentation of this file.
1// $Id: Rw11UnitStream.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-09 1080 1.0.2 Pos() not const anymore
8// 2017-04-07 868 1.0.1 Dump(): add detail arg
9// 2013-05-04 515 1.0 Initial version
10// 2013-05-01 513 0.1 First draft
11// ---------------------------------------------------------------------------
12
13
18#ifndef included_Retro_Rw11UnitStream
19#define included_Retro_Rw11UnitStream 1
20
21#include "Rw11VirtStream.hpp"
22
23#include "Rw11UnitVirt.hpp"
24
25namespace Retro {
26
27 class Rw11UnitStream : public Rw11UnitVirt<Rw11VirtStream> {
28 public:
29 Rw11UnitStream(Rw11Cntl* pcntl, size_t index);
31
32 void SetPos(int pos);
33 int Pos();
34
35 int VirtRead(uint8_t* data, size_t count, RerrMsg& emsg);
36 bool VirtWrite(const uint8_t* data, size_t count, RerrMsg& emsg);
37 bool VirtFlush(RerrMsg& emsg);
38
39 virtual void Dump(std::ostream& os, int ind=0, const char* text=0,
40 int detail=0) const;
41
42 // statistics counter indices
43 enum stats {
47 };
48
49 protected:
50 };
51
52} // end namespace Retro
53
54//#include "Rw11UnitStream.ipp"
55
56#endif
FIXME_docs.
Definition: RerrMsg.hpp:25
FIXME_docs.
Definition: Rw11Cntl.hpp:42
int VirtRead(uint8_t *data, size_t count, RerrMsg &emsg)
FIXME_docs.
~Rw11UnitStream()
Destructor.
void SetPos(int pos)
FIXME_docs.
bool VirtWrite(const uint8_t *data, size_t count, RerrMsg &emsg)
FIXME_docs.
bool VirtFlush(RerrMsg &emsg)
FIXME_docs.
int Pos()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Implemenation (inline) of Rw11UnitVirt.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47